/* ==========================================================================
   1. Variables Globales (:root)
   ========================================================================== */
:root {
    --initial-header-padding: 2px;
    --scrolled-header-padding: 1px;
    --initial-logo-height: 150px;
    --scrolled-logo-height: 70px;
    --header-scroll-threshold: 240;
    --hero-background-blur-amount: 4px;
}

/* ==========================================================================
   2. Estilos Generales del Body y Contenedor Principal
   ========================================================================== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif; /* Cambiado a Arial según tu solicitud */
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #fafbfc;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. Componentes Compartidos (Header, Footer, Navegación)
   ========================================================================== */
/* 3.1 Cabecera (Header) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.site-header.initial-state {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--initial-header-padding) 0;
    border-bottom: 1px solid transparent;
}
.site-header.initial-state .main-navigation a {
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
    background-color: transparent;
}
.site-header.initial-state .main-navigation a:hover,
.site-header.initial-state .main-navigation a.active {
    background-color: rgba(255,255,255,0.2);
    border-color: #ffffff;
}
.site-header.initial-state .menu-toggle {
    color: #ffffff;
}

.site-header.scrolled-state {
    background-color: #f1f1ed;
    padding: var(--scrolled-header-padding) 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.site-header.scrolled-state .main-navigation a {
    color: #000000;
    border-color: #000000;
    background-color: #f1f1ed;
}
.site-header.scrolled-state .main-navigation a:hover,
.site-header.scrolled-state .main-navigation a.active {
    background-color: #e0e0e0;
}
.site-header.scrolled-state .menu-toggle {
    color: #000000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}
.logo img {
    width: auto;
    display: block;
    transition: max-height 0.4s ease;
}
.site-header.initial-state .logo img {
    max-height: var(--initial-logo-height);
}
.site-header.scrolled-state .logo img {
    max-height: var(--scrolled-logo-height);
}

/* 3.1.1 Navegación Principal y Menú Móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}
.menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-navigation li {
    margin-left: 25px;
}

.main-navigation a {
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid; /* Color se define por estado .initial-state o .scrolled-state */
    border-radius: 5px;
    font-size: 0.95em;
    font-family: inherit;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    box-shadow: none;
}

/* 3.2 Pie de Página (Footer) */
.site-footer {
    background: linear-gradient(90deg, #232a34 0%, #2c3e50 50%, #34495e 100%);
    color: #ecf0f1;
    text-align: center;
    padding: 30px 0;
}
.site-footer p {
    margin: 5px 0;
    font-size: 0.9em;
}
.site-footer .footer-brand {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top:10px;
}
.site-footer .footer-brand a {
    color: inherit; 
    text-decoration: none; 
    transition: color 0.3s ease, text-decoration 0.3s ease; 
}
.site-footer .footer-brand a:hover {
    color: #ffffff; 
    text-decoration: underline; 
}

.social-icons {
    margin-top: 15px;
}
.social-icons a {
    color: #ecf0f1;
    margin: 0 8px;
    text-decoration: none;
    font-size: 1.5em;
    display: inline-block;
    transition: transform 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.2);
}
.social-icons svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ==========================================================================
4. Estilos Específicos de Secciones de INDEX.HTML
   ========================================================================== */

/* 4.0 Título de Sección General (usado en index.html y otras páginas si es necesario) */
.section-title { 
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: bold;
    padding-top: 70px; /* Para compensar header fijo */
}

/* 4.1 Sección Hero (index.html) */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.hero-slider-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-slide {
    width: 100%; height: 70vh;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}
.hero-slide.active-slide {
    opacity: 1;
    z-index: 2;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-overlay-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(30, 34, 44, 0.65);
    border-radius: 18px;
    padding: 48px 36px 40px 36px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.hero-title-main {
    font-size: 3.6em;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 10px 0;
    color: #fff;
    line-height: 1.1;
    font-family: 'Montserrat', Arial, sans-serif;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.hero-subtitle {
    font-size: 1.25em;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 18px;
    line-height: 1.5;
}
.hero-btn {
    display: inline-block;
    background: linear-gradient(90deg, #232a34 0%, #2c3e50 50%, #34495e 100%);
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 30px;
    border: 1.5px solid #232a34;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(30,34,44,0.10);
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
    letter-spacing: 0.5px;
}
.hero-btn:hover {
    background: linear-gradient(90deg, #1a1f25 0%, #232a34 50%, #2c3e50 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(30,34,44,0.13);
    transform: translateY(-1px) scale(1.03);
}
.hero-section .slider-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}
.hero-section .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid #232a34;
    cursor: pointer;
    transition: background 0.3s, border 0.3s;
}
.hero-section .dot.active-dot {
    background: #232a34;
    border-color: #fff;
}
@media (max-width: 700px) {
    .hero-overlay-content {
        padding: 28px 12px 24px 12px;
        max-width: 98vw;
    }
    .hero-title-main {
        font-size: 1.5em;
    }
    .hero-section {
        min-height: 45vh;
    }
    .hero-slide {
        height: 45vh;
    }
}

/* 4.2 Sección Acerca de Nosotros (en index.html) */
.about-section { 
    padding: 20px 0;
    background-color: #f7f7f7;
}
.about-intro-text {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto;
}
.about-subsection {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    gap: 40px;
}

.about-subsection.vision-subsection {
    flex-direction: row-reverse;
}
.about-subsection-image {
    flex: 1;
    max-width: 48%;
}
.about-subsection-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.about-subsection-text {
    flex: 1;
    max-width: 48%;
}
.about-subsection-text h3 {
    font-size: 2em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 15px;
}
.about-subsection-text p {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
}

.about-subsection.mision-subsection .about-subsection-text,
.about-subsection.vision-subsection .about-subsection-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #fff;
    border-radius: 14px;
    padding: 24px 18px;
}
.about-subsection.mision-subsection .about-subsection-text h3,
.about-subsection.vision-subsection .about-subsection-text h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.about-subsection.mision-subsection .about-subsection-text p,
.about-subsection.vision-subsection .about-subsection-text p {
    width: 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.8;
    font-size: 1.08em;
}

/* 4.3 Sección Áreas de Especialización (Preview en index.html) */
.specialization-section { 
    padding: 80px 0;
    background-color: #fff;
}
.specialization-section .section-title { 
    padding-top: 50px;
}
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}
.service-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.service-card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    margin-bottom: 20px;
}
.service-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}
.service-card:hover .service-card-image-container img {
    transform: scale(1.1);
}
.service-card h3 {
    font-size: 1.5em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 15px;
}
.service-card .description {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.service-card .description ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.service-card .description li {
    margin-bottom: 5px;
}
.service-card .btn-mas-info {
    background: linear-gradient(90deg, #232a34 0%, #2c3e50 50%, #34495e 100%);
    color: #fff;
    border: 1.5px solid #232a34;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1em;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
}
.service-card .btn-mas-info:hover {
    background: linear-gradient(90deg, #1a1f25 0%, #232a34 50%, #2c3e50 100%);
    color: #fff;
    border-color: #232a34;
}

/* 4.4 Sección Nuestras Fortalezas (index.html) */
.strengths-section { 
    padding: 16px 0;
    background-color: #fafbfc;
}
.strengths-section .section-title {
    padding-top: 20px;
}
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.strength-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.strength-item .icon-container {
    margin-bottom: 15px;
}
.strength-item .icon-container svg {
    width: 50px;
    height: 50px;
    fill: #333;
}
.strength-item h3 {
    font-size: 1.3em;
    color: #34495e;
    margin-bottom: 10px;
    min-height: 2.6em;
}
.strength-item p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

/* 4.5 Sección Testimonios (index.html, dentro de Nuestras Fortalezas) */
.testimonials-slider-wrapper { 
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
    overflow: hidden;
}
.testimonials-slider {
    max-width: 600px;
    min-height: 220px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-slide {
    padding: 32px 28px 24px 28px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.testimonial-slide.active-testimonial {
    opacity: 1;
    position: relative;
    display: block;
}
.testimonial-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    gap: 12px;
}
.testimonial-name, .testimonial-date, .testimonial-stars {
    text-align: center;
    margin: 0;
    padding: 0;
}
.testimonial-name {
    font-weight: 700;
    color: #232a34;
    font-size: 1.08em;
}
.testimonial-date {
    font-size: 0.95em;
    color: #888;
}
.testimonial-stars {
    margin: 2px 0 6px 0;
}
.testimonial-text {
    color: #232a34;
    font-size: 1.13em;
    margin: 0 0 10px 0;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.1);
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    transition: background-color 0.3s;
    z-index: 10;
}
.testimonial-nav:hover {
    background-color: rgba(0,0,0,0.2);
}
.testimonial-nav.prev {
    left: 0px;
}
.testimonial-nav.next {
    right: 0px;
}
.testimonial-dots-container { 
    text-align: center;
    margin-top: 25px;
}
.testimonial-dots-container .dot { 
    background-color: #ccc;
}
.testimonial-dots-container .dot.active-dot {
    background-color: #555;
}

/* 4.6 Sección Carrusel de Clientes (index.html) */
.client-carousel-section { 
    padding: 40px 0 30px; /* Reducido padding-bottom */
    background-color: #ffffff; 
}
.client-carousel-section .section-title {
    margin-bottom: 40px;
    padding-top: 30px; /* Reducido padding-top */
}
.logo-carousel-container {
    width: 100%;
    overflow: hidden; 
    position: relative; 
    height: 100px; 
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.logo-carousel-track {
    display: flex;
    /* El ancho debe ser exactamente el doble del número de logos únicos para que el bucle sea perfecto. Hay 7 logos únicos, duplicados (14 en total). Cada logo ocupa ~170px (120px imagen + 50px margen). */
    width: calc(170px * 14); /* 14 logos, 170px cada uno */
    animation: scrollLogos 35s linear infinite;
    height: 100%; 
    align-items: center; 
}
.client-logo {
    flex-shrink: 0; 
    width: auto; 
    margin: 0 25px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-logo img {
    max-height: 60px; 
    max-width: 120px; 
    object-fit: contain; 
    opacity: 0.7; 
    transition: opacity 0.3s ease;
}
.client-logo img:hover {
    opacity: 1; 
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 4.7 Sección Contáctanos (en index.html) */
.contact-section { 
    padding: 60px 0;
    background-color: #fff;
}
.contact-section .section-title { /* Título "Contáctanos" */
    padding-top: 70px; 
    text-align: left; 
    margin-bottom: 20px; 
}
.contact-content-wrapper {
    display: flex;
    gap: 50px;
}
.contact-info-text {
    flex: 1;
    max-width: 40%;
    padding-top: 0px; 
}
.contact-info-text h2.section-title { 
     padding-top: 0; 
}
.contact-info-text h3.contact-details-title {
    font-size: 1.4em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}
.contact-info-text p.contact-detail-item {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}
.contact-info-text p.contact-detail-item strong {
    color: #333;
    display: block;
    margin-bottom: 2px;
}
.contact-info-text p.contact-detail-item span {
    display: block;
}
.contact-form-container {
    flex: 1.5;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
    font-size: 0.9em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    color: #333;
    font-family: inherit;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.btn-submit {
    display: inline-block;
    background-color: #ffffff;
    color: #333;
    padding: 12px 25px;
    border: #333 1px solid;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: inherit;
}
.btn-submit:hover {
    background: linear-gradient(90deg, #1a1f25 0%, #232a34 50%, #2c3e50 100%);
    color: #fff;
    border-color: #232a34;
    box-shadow: 0 12px 32px rgba(30,34,44,0.18), 0 2px 8px rgba(30,34,44,0.10);
    transform: scale(1.05) translateY(-6px);
}
.form-notice {
    font-size: 0.8em;
    color: #333;
    margin-top: 15px;
    text-align: right;
}
.form-notice a {
    color: #333;
    text-decoration: underline;
}

/* ==========================================================================
   5. Estilos ESPECÍFICOS para la Página de SERVICIOS.HTML
   ========================================================================== */
/* === Estilos ESPECÍFICOS para la Página de SERVICIOS.HTML === */

.servicios-page-container .page-title-section {
    /* Ajustado para coincidir con clientes-socios.html */
    padding: 120px 0 80px; 
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative; 
    color: #ffffff; 
}

.servicios-page-container .page-title-section::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.55); 
}

.servicios-page-container .page-title {
    /* Ajustado font-size para coincidir con clientes-socios.html, manteniendo color y sombra específicos */
    font-size: 3.2em; 
    color: #000000; 
    position: relative;
    z-index: 1;
    margin: 20;
    text-shadow: 0px 0px 8px rgba(255,255,255,0.6), 0px 0px 3px rgba(255,255,255,0.8); 
}

/* ... (el resto de los estilos para servicios-page-container permanecen igual) ... */
.servicios-page-container .page-content {
    padding-top: 40px;
    padding-bottom: 60px;
}
.servicios-page-container .services-intro {
    text-align: center; 
    font-size: 1.2em; 
    margin-bottom: 60px; 
    max-width: 800px; 
    margin-left:auto; 
    margin-right:auto;
    color: #444;
}
.servicios-page-container .service-detail-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    padding: 32px 24px;
    margin-bottom: 48px;
}
.servicios-page-container .service-detail-section:nth-child(odd) .service-detail-image-container { order: 1; }
.servicios-page-container .service-detail-section:nth-child(odd) .service-detail-text { order: 2; }
.servicios-page-container .service-detail-section:nth-child(even) .service-detail-image-container { order: 2; }
.servicios-page-container .service-detail-section:nth-child(even) .service-detail-text { order: 1; }
.servicios-page-container .service-detail-image-container {
    flex: 0 0 40%; 
    max-width: 40%;
}
.servicios-page-container .service-detail-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-top: 30px;
}
.servicios-page-container .service-detail-text {
    flex: 1; 
}
.servicios-page-container .service-detail-text h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}
.servicios-page-container .service-detail-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}
.servicios-page-container .service-detail-text h3 { 
    font-size: 1.4em;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}
.servicios-page-container .service-detail-text ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 30px;
}
.servicios-page-container .service-detail-text ul li {
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.7;
    color: #444;
}
.servicios-page-container .btn-cta {
    display: inline-block;
    background: linear-gradient(90deg, #232a34 0%, #2c3e50 50%, #34495e 100%);
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
}
.servicios-page-container .btn-cta:hover {
    background: linear-gradient(90deg, #1a1f25 0%, #232a34 50%, #2c3e50 100%);
}
.servicios-page-container hr.section-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 60px auto; 
    width: 80%; 
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS para la Página de CLIENTES & SOCIOS (clientes-socios.html)
   ========================================================================== */
.clientes-socios-page-container .page-title-section {
    padding: 120px 0 80px; 
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative; 
    color: #ffffff; 
}
.clientes-socios-page-container .page-title-section::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.55); 
}
/* Dentro de los estilos para clientes-socios.html en css/style.css */

.clientes-socios-page-container .page-title {
    font-size: 3.2em; /* Mantenemos el tamaño consistente */
    color: #000000; /* CAMBIADO A NEGRO */
    position: relative;
    z-index: 1;
    margin: 20;
    /* Sombra clara para resaltar el texto negro, igual que en servicios.html */
    text-shadow: 0px 0px 8px rgba(255,255,255,0.6), 0px 0px 3px rgba(255,255,255,0.8); 
}
.clientes-socios-page-container .page-content {
    padding-top: 40px;
    padding-bottom: 60px;
}
.clientes-socios-page-container .services-intro { 
    text-align: center; 
    font-size: 1.2em; 
    margin-bottom: 60px; 
    max-width: 800px; 
    margin-left:auto; 
    margin-right:auto;
    color: #444;
}
.clientes-socios-page-container .clients-section,
.clientes-socios-page-container .partners-section {
    padding: 40px 0;
}
/* Usar .section-title general para los títulos dentro de clientes-socios, 
   pero con un padding-top específico si es necesario, o quitar el padding-top general 
   si el padding de la sección es suficiente.
   La clase .section-title ya tiene padding-top: 70px. Si es demasiado para estos
   títulos internos, podemos sobreescribirlo. */
.clientes-socios-page-container .clients-section .section-title,
.clientes-socios-page-container .partners-section .section-title {
    padding-top: 20px; /* Reducido padding para estos títulos específicos */
    margin-bottom: 30px; 
}
.clientes-socios-page-container .clients-grid,
.clientes-socios-page-container .partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    text-align: center;
}
.clientes-socios-page-container .client-item,
.clientes-socios-page-container .partner-item {
    background-color: #f9f9f9; 
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px; 
}
.clientes-socios-page-container .client-item img,
.clientes-socios-page-container .partner-item img {
    max-height: 80px; 
    max-width: 150px; 
    object-fit: contain;
    margin-bottom: 15px;
}
.clientes-socios-page-container .client-item h4,
.clientes-socios-page-container .partner-item h4 {
    font-size: 1.1em; 
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
}
.clientes-socios-page-container .partner-item p { 
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}


/* ==========================================================================
   6. Clases de Utilidad y Animaciones
   ========================================================================== */
/* 6.1 Animaciones al Hacer Scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-up {
    transform: translateY(30px);
}
.fade-in-left {
    transform: translateX(-30px);
}
.fade-in-right {
    transform: translateX(30px);
}
.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ==========================================================================
   7. Media Queries (Estilos Responsivos)
   ========================================================================== */
@media (max-width: 992px) {
    .specialization-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clientes-socios-page-container .clients-grid,
    .clientes-socios-page-container .partners-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #f1f1ed;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .site-header.menu-open .main-navigation {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }
    .main-navigation li {
        margin-left: 0;
        margin-bottom: 0;
        width: 100%;
    }
    .main-navigation a {
        display: block;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-radius: 0;
    }
    .main-navigation li:last-child a {
        border-bottom: none;
    }
    .site-header.initial-state .main-navigation a,
    .site-header.scrolled-state .main-navigation a {
        color: #000000;
        border-color: #e0e0e0;
        background-color: #f1f1ed;
    }
    .site-header.initial-state .main-navigation a:hover,
    .site-header.scrolled-state .main-navigation a:hover,
    .site-header.initial-state .main-navigation a.active,
    .site-header.scrolled-state .main-navigation a.active {
        background-color: #e0e0e0;
    }

    .hero-title {
        font-size: 2.8em;
    }
    .hero-tagline {
        font-size: 1.2em;
    }
    .hero-section {
        padding-top: calc(var(--initial-header-padding) * 2 + var(--initial-logo-height) + 0px);
    }

    .section-title {
        font-size: 2em;
        padding-top: 60px;
    }
    .about-subsection {
        flex-direction: column;
        text-align: center;
    }
    .about-subsection.vision-subsection {
        flex-direction: column;
    }
    .about-subsection-image {
        max-width: 80%;
        margin-bottom: 20px;
    }
    .about-subsection-text h3 {
        margin-top: 0;
    }
    .about-subsection.mision-subsection .about-subsection-text {
        margin: 0 0 30px 0;
        font-size: 18px;
    }

    .specialization-grid {
        grid-template-columns: 1fr;
    }
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .logo-carousel-track {
        animation-duration: 20s; /* Más lento en móviles ya que hay menos espacio */
        /* Si ajustaste el número de logos o su tamaño para móvil, ajusta el width aquí */
        /* Ejemplo para 7 logos únicos (14 items) a 100px por item (img 80px + margen 20px) */
        /* width: calc(100px * 14); */ 
    }
    .client-logo {
        margin: 0 10px; /* Menos margen en móviles */
    }
    .client-logo img {
        max-height: 40px; /* Logos más pequeños en móviles */
        max-width: 80px;
    }
    .logo-carousel-container {
        height: 70px; /* Altura menor para el carrusel en móviles */
        mask-image: linear-gradient(to right, transparent 0%, black 8%,  black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    }

    .testimonials-slider-wrapper {
        padding: 0 15px;
    }
    .testimonial-nav {
        width: 30px;
        height: 30px;
        font-size: 18px;
        line-height: 30px;
    }
    .testimonial-nav.prev {
        left: -5px;
    }
    .testimonial-nav.next {
        right: -5px;
    }
    .contact-content-wrapper {
        flex-direction: column;
    }
    .contact-info-text {
        max-width: 100%;
        margin-bottom: 30px;
        padding-top: 0;
    }
    .contact-info-text h2.section-title,
    .contact-info-text h3.contact-details-title {
        text-align: center;
        padding-top: 0;
    }
    
    /* Ajustes responsivos para la página de servicios */
    .servicios-page-container .page-title {
        font-size: 2.5em;
    }
    .servicios-page-container .page-title-section {
        padding: 100px 0 40px;
    }
    .servicios-page-container .service-detail-section {
        flex-direction: column;
        padding: 20px 0;
    }
    .servicios-page-container .service-detail-section:nth-child(odd) .service-detail-image-container,
    .servicios-page-container .service-detail-section:nth-child(even) .service-detail-image-container,
    .servicios-page-container .service-detail-section:nth-child(odd) .service-detail-text,
    .servicios-page-container .service-detail-section:nth-child(even) .service-detail-text {
        order: 0; 
        max-width: 100%;
    }
    .servicios-page-container .service-detail-image-container {
        margin-bottom: 20px;
        flex-basis: auto; 
    }
    .servicios-page-container .service-detail-text {
         flex-basis: auto; 
    }

    /* Ajustes responsivos para la página de clientes y socios */
    .clientes-socios-page-container .page-title {
        font-size: 2.2em;
    }
     .clientes-socios-page-container .clients-grid,
    .clientes-socios-page-container .partners-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles para clientes y socios */
    }
     .clientes-socios-page-container .client-item,
    .clientes-socios-page-container .partner-item {
        min-height: auto; /* Altura automática en móviles */
        padding: 20px;
    }
    .clientes-socios-page-container .client-item img,
    .clientes-socios-page-container .partner-item img {
        max-height: 60px; /* Logos un poco más pequeños */
    }
}

/* 4.3 Sección Equipo de Trabajo (en index.html) */
.team-section {
    padding: 60px 0 150px; /* Aumenta el padding inferior para mayor separación */
    background-color: #f9f9f9; /* Color de fondo similar a la sección de especialidades */
}

.team-intro-text {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas para los miembros del equipo */
    gap: 30px;
}

.team-member {
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.team-member:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-out;
}
.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member h3 {
    font-size: 1.3em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 5px;
}

.team-member-title {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

.team-member-bio {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* Media Query para pantallas más pequeñas (ajusta según necesidad) */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas pequeñas */
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas muy pequeñas */
    }
}

/* Estilos para la sección de Equipo (con filas) */
.team-grid {
    display: flex;
    flex-direction: column; /* Apilar las filas verticalmente */
    gap: 20px; /* Espacio entre filas */
}

.team-row {
    display: flex; /* Alinear los miembros del equipo en una fila */
    justify-content: center; /* Centrar horizontalmente */
    gap: 30px; /* Espacio entre miembros en la misma fila */
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .team-row {
        flex-direction: column; /* Apilar miembros en pantallas pequeñas */
        align-items: center; /* Centrar miembros apilados */
    }
    .team-grid {
        gap: 30px; /* Aumentar el espacio entre los miembros en general */
    }
}

/* HERO: Títulos y subtítulos en negro, fuente moderna, sin fondo adicional */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;400&display=swap');

.hero-title, .hero-tagline {
    color: #181818;
    font-family: 'Montserrat', Arial, sans-serif;
    text-shadow: none;
}
.hero-title {
    font-size: 3em;
    font-weight: 700;
    margin: 0 0 0.2em 0;
    letter-spacing: -1px;
}
.hero-tagline {
    font-size: 1.4em;
    font-weight: 400;
    margin: 0;
    color: #232a34;
}

/* Botón del hero (si se usa) */
.hero-btn, .btn-mas-info {
    display: inline-block;
    background: linear-gradient(90deg, #232a34 0%, #2c3e50 50%, #34495e 100%);
    color: #fff;
    font-size: 1.1em;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 30px;
    border: none;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(30,34,44,0.08);
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
    letter-spacing: 0.5px;
    margin-top: 18px;
}
.hero-btn:hover, .btn-mas-info:hover {
    background: linear-gradient(90deg, #1a1f25 0%, #232a34 50%, #2c3e50 100%);
    color: #fff;
    border-color: #232a34;
    box-shadow: 0 12px 32px rgba(30,34,44,0.18), 0 2px 8px rgba(30,34,44,0.10);
    transform: scale(1.05) translateY(-6px);
}

/* Ajuste para que el contenido del hero esté sobre la imagen pero sin fondo */
.hero-content-static {
    background: rgba(255,255,255,0.15); /* Casi transparente */
    backdrop-filter: blur(2.5px);
    box-shadow: 0 8px 32px rgba(30,34,44,0.10);
    border-radius: 18px;
    padding: 40px 36px 32px 36px;
    text-align: center;
    min-width: 320px;
    max-width: 90vw;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 3;
}
@media (max-width: 700px) {
    .hero-content-static {
        padding: 18px 6vw 16px 6vw;
        min-width: unset;
    }
}

/* === Sección de Valores Destacados === */
.valores-section {
    background: #f7f8fa;
    padding: 48px 0 32px 0;
}
.valores-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.valor-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(30,34,44,0.08);
    padding: 36px 28px 28px 28px;
    flex: 1 1 260px;
    min-width: 260px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}
.valor-card:hover {
    box-shadow: 0 8px 32px rgba(30,34,44,0.13);
    transform: translateY(-4px) scale(1.03);
}
.valor-icon {
    margin-bottom: 18px;
}
.valor-card h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25em;
    font-weight: 700;
    color: #232a34;
    margin: 0 0 10px 0;
}
.valor-card p {
    color: #444b5a;
    font-size: 1em;
    margin: 0;
}
@media (max-width: 900px) {
    .valores-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .valor-card {
        max-width: 95vw;
    }
}

/* === Testimonios tipo Google === */
.testimonios-google-section {
    background: #fafbfc;
    padding: 16px 0 32px 0;
}
.testimonials-slider {
    max-width: 600px;
    min-height: 220px;
}
.testimonial-slide {
    padding: 32px 28px 24px 28px;
    min-height: 180px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.5em;
}
.testimonial-name {
    font-size: 1.08em;
}
.testimonial-date {
    font-size: 0.95em;
}
.testimonial-text {
    font-size: 1.13em;
}

@keyframes slideInRightBounce {
  0% { opacity: 0; transform: translateX(60px) scale(0.99); }
  60% { opacity: 1; transform: translateX(-6px) scale(1.02); }
  80% { transform: translateX(2px) scale(1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideInLeftBounce {
  0% { opacity: 0; transform: translateX(-60px) scale(0.99); }
  60% { opacity: 1; transform: translateX(6px) scale(1.02); }
  80% { transform: translateX(-2px) scale(1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.testimonial-slide {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 0; right: 0;
  transition: none;
}
.testimonial-slide.active-testimonial {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  animation: slideInRightBounce 0.7s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 2;
}
.testimonial-slide.slide-in-left {
  animation: slideInLeftBounce 0.7s cubic-bezier(.68,-0.55,.27,1.55);
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.testimonials-slider {
  position: relative;
  min-height: 220px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbc04;
    stroke: #fbbc04;
    margin-right: 2px;
    vertical-align: middle;
}