/**<!-- 
  Autor: Ingeniero KEVIN JOSE LOOR MENDOZA
  Fecha: 25/08/2025
  Proyecto: Página web AVAL EMPRESARIAL
-->*/

    /* Variables de color */
    :root {
      --color-principal: #6f1d1b;
      --color-secundario: #DAA520;
      --color-terciario: #fff3b0;
      --color-texto: #333;
      --color-fondo: #f8f9fa;
    }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
    }

    body { scroll-behavior: smooth; }


    /* Barra superior */
    .top-bar {
      background: #f5f5f5;
      display: flex;
      justify-content: flex-end;
      padding: 5px 20px;
      font-size: 14px;
      border-bottom: 1px solid #ddd;;
    }
    .top-bar a {
      color: var(--color-texto);
      margin-left: 20px;
      text-decoration: none;
      display: flex;
      align-items: center;
    }
    .top-bar a i {
      margin-right: 5px;
      color: var(--color-principal);
    }

    /* Header principal */
    .main-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px;
      color: var(--color-principal);
    }

    .logo {
      display: flex;
      align-items: center;
    }

    .logo img {
      height: 40px;
      margin-right: 10px;
    }

    /* Menú navegación */
    nav {
      background: var(--color-principal);
      padding: 10px 20px;
      display: flex;
      align-items: center;
    }
    nav .menu {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      flex-wrap: wrap;
    }
    nav .menu li {
      margin: 0 15px;
    }
    nav .menu a {
      color: var(--color-fondo);
      text-decoration: none;
      font-weight: bold;
    }
    nav .menu a:hover {
      background-color: var(--color-secundario);
    }


/* Header al hacer scroll */
.header-scroll {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

/* Mostrar header al hacer scroll */
.header-scroll.show {
  transform: translateY(0);
}

/* Ajustes para top-bar y nav */
.header-scroll .top-bar {
  display: flex;
  justify-content: flex-end;
  padding: 5px 20px;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
}

.header-scroll .top-bar a {
  color: #333;
  margin-left: 20px;
  text-decoration: none;
}

.header-scroll nav {
  display: flex;
  justify-content: center;
  background-color: #6f1d1b;
}

.header-scroll nav .menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.header-scroll nav .menu li {
  margin: 0 15px;
}

.header-scroll nav .menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.header-scroll nav .menu a:hover {
  background-color: #DAA520;
  padding: 5px 10px;
  border-radius: 5px;
}



    /* Sección de inicio Portada */
    .fondo-imagenes {
    position: relative;
    width: 100%;
    }

    .fondo-imagenes img {
    width: 100%;
    height: auto;
    display: block;
    }

    .cta-button {
    position: absolute;
    bottom: 20px;
    left: 20%;                  
    background: var(--color-principal);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    z-index: 2; 
    }

    .cta-button:hover {
    background: var(--color-secundario);
    }


    /* Carrusel Misión/Visión */
    #nosotros {
    padding: 4rem 2rem; /* espacio arriba y abajo de toda la sección */
    text-align: center;
    }

    #nosotros p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    }

    .mision-vision-container {
    position: relative;
    max-width: 800px;
    margin: 4rem auto; 
    overflow: hidden;
    border-radius: 10px;
    }

    .mision-vision {
    display: flex;
    transition: transform 0.9s ease;
    gap: 20px; /* espacio entre las cards */
    }

    .mision-vision .card {
    min-width: 100%;
    padding: 3rem;
    box-sizing: border-box;
    text-align: center;
    border-radius: 10px;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('/Imagenes/mision,vision.jpeg') no-repeat center center;
    background-size: cover;
    }

    .mision-vision .card h3 {
    color: #FFD700; /* resalta el título sobre el fondo */
    margin-bottom: 1rem;
    }

    .mision-vision .card p {
    color: #f8f9fa; /* texto más visible */
    line-height: 1.6;
    }

    .carrusel-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem; 
    }

    .carrusel-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 6px;
    cursor: pointer;
    }

    .carrusel-control.active {
    background-color: var(--color-primario);
    transform: scale(1.2);
    }


    /* Valores */
    .valores {
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    }

    .valores ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0;
    list-style: none;
    }

    .valores li {
    background-color: var(--color-fondo);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-secundario);
    }

    .valores li:hover {
    transform: translateY(-5px);
    }

    .valoracion-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--sombra);
    }

    .valoracion-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    }

    .importancia {
    margin: 3rem 0;
    }


    /*razones*/
    .container h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    }

    .razones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    }

    .razon {
    background-color: #edede9;
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transicion);
    border-top: 3px solid var(--color-secundario);
    }

    .razon:hover {
    transform: translateY(-5px);
    }

    .razon img {
    display: block;         /* lo vuelve un bloque */
    margin: 0 auto 1rem;
    width: 60px;  
    height: 60px;  
    object-fit: contain;
    margin-bottom: 1rem;
    }

    .razon h4 {
    font-size: 1.2rem;
    color: var(--color-secundario);
    margin-bottom: 0.5rem;
    text-align: center;
    }

    .razon p {
    font-size: 0.95rem;
    color: #333;
    }

    .activos {
    background-color: var(--color-fondo);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    }

    .activos ul {
    padding-left: 1.2rem;
    }

    .activos li {
    margin-bottom: 0.8rem;
    position: relative;
    }

    .activos li::before {
    content: "•";
    color: var(--color-secundario);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    }


    /* Servicios */
    #servicios {
    position: relative;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-position: center center;
    
    }

    .servicios-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* siempre 3 columnas */
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px; 
    }
    .servicio {
    background: rgba(255, 255, 255, 0.9); /* fondo blanco transparente */
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* asegura que el icono quede arriba */
    }


    .servicio:hover {
    transform: translateY(-5px);
    }

    .servicio h3 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    }

    .servicio p {
    color: #666;
    }

    .servicio img {
    width: 70px;   
    height: 70px;
    object-fit: contain;
    margin-bottom: 1rem;
    }

    /* Colores para los cuadros div */
    .servicio:nth-child(1) {
    background: #bc4b51;
   
    }

    .servicio:nth-child(2) {
    background: #bc4b51;
    
    }

    .servicio:nth-child(3) {
    background: #bc4b51; 
   
    }

    .servicio:nth-child(4) {
    background: #d6ce93;
    
    }

    .servicio:nth-child(5) {
    background: #d6ce93;
    }

    .servicio:nth-child(6) {
    background: #d6ce93;
    
    }


    .servicio:nth-child(7) {
    background: #E6CA7C; 
    
    }


    .servicio:nth-child(8) {
    background: #E6CA7C; 
    
    }


    .servicio:nth-child(9) {
    background: #E6CA7C; 
    
    }

    /* Ajustar texto para contraste */
    .servicio:nth-child(1) h3,
    .servicio:nth-child(2) h3,
    .servicio:nth-child(3) h3,
    .servicio:nth-child(4) h3,
    .servicio:nth-child(5) h3,
    .servicio:nth-child(6) h3,
    .servicio:nth-child(7) h3,
    .servicio:nth-child(8) h3,
    .servicio:nth-child(9) h3,

    .servicio:nth-child(1) p,
    .servicio:nth-child(2) p,
    .servicio:nth-child(3) p,
    .servicio:nth-child(4) p
    .servicio:nth-child(5) p,
    .servicio:nth-child(6) p,
    .servicio:nth-child(7) p,
    .servicio:nth-child(8) p,
    .servicio:nth-child(9) p {
    color: #fbf8f8;
    }


    /* Equipo */
    .team-member {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background-color: #640d14; 
    color: #fff; 
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
    }

    .member-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .member-info {
    flex: 1; 
    }

    .member-info h3 {
    color: #DAA520; 
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    }

    .position {
    color: var(--color-secundario);
    font-weight: bold;
    margin-bottom: 0.5rem;
    }

    .qualifications {
    color: #f3e5d0; 
    font-style: italic;
    margin-bottom: 1rem;
    }

    .member-bio h4 {
    color: #DAA520; /* dorado para subtítulos */
    font-size: 1.3rem;
    margin-top: 1rem;
    border-bottom: 2px solid #F0A500; /* línea dorada */
    padding-bottom: 0.3rem;
    display: inline-block;
    }

    .member-bio ul {
    padding-left: 1.2rem;
    }

    .member-bio li {
    margin-bottom: 0.8rem;
    position: relative;
    }

    .member-bio li::before {
    content: "•";
    color: #F0A500; 
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    }


    /* Contacto */
    .contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    }

    .contact-info h3 {
    color: var(--color-secundario);
    margin-bottom: 1.5rem;
    }

    .contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    }

    .contact-info strong {
    color: var(--color-primario);
    }

    .social-icon {
    display: flex;
    justify-content: space-between; /* 🔹 distribuye: izq, centro y der */
    align-items: center;
    width: 100%;         /* ocupa todo el ancho del contenedor */
    max-width: 500px;    /* opcional: limita el ancho */
    margin: 2rem auto;   /* centra el bloque en la página */
    font-size: 3rem;     /* tamaño de los íconos */
    }

    .social-icon a {
    color: #800020;  /* vino tinto */
    text-decoration: none;
    }

    .social-icon a:hover {
    transform: scale(1.2);
    color: #dbb42c;  /* cambia color al pasar el mouse */
    }

    /* Footer */
    footer {
    background-color: var(--color-primario);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    }

    footer p {
    margin: 0.5rem 0;
    }

    footer a {
    color: var(--color-texto);
    text-decoration: none;
    }

    footer .social-icon a {
    width: 30px;
    }

    /* Responsive */
    @media (max-width: 768px) {
      nav .menu {
        display: none;
      }
    }

/*despliegue en nuestros servicios*/
.img-servicio {
  display: block;
  margin: 0 auto 2rem;
  max-width: 350px;
  width: 100%;
  height: auto;
}



    