/* styles.css */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

* {
    font-family: 'Inter', sans-serif;
}

/* Header y Navegación */
.header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00d084 0%, #0099ff 100%);
    border-radius: 4px;
    position: relative;
}

.logo-icon::before {
    content: '✱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #6b7280;
    font-size: 19px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a:hover {
    color: #1e3a8a;
}

.nav-menu a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-image: url('img/Arrow 8.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 5px;
    margin-top: 2px;
    vertical-align: middle;
}

.nav-menu a:first-child {
    color: #1e3a8a;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 40px;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: all;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #1e0557;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 500"><rect fill="%233b0a91" width="400" height="500"/></svg>');
    background-size: cover;
    background-position: center;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 159px;
    margin: 0;
    padding: 0 40px 0 40px;
    color: white;
    text-align: left;
}

.hero-content::after {
    content: '';
    display: flex;
    margin-top: 20px;
    gap: 12px;
}

.hero-indicators-wrapper {
    display: contents;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    max-width: 600px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.2;
    max-width: 500px;
}

.hero-content p strong {
    font-weight: 700;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
    padding: 0;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

.hero-arrow svg {
    width: 24px;
    height: 24px;
}

/* Indicadores del slider */
.hero-indicators {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    z-index: 10;
}

.hero-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 50px;
}

/* Indicadores estáticos debajo del texto */
.hero-indicators-static {
    position: absolute;
    bottom: 150px;
    left: 95px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-indicator-static {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hero-indicator-static:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-indicator-static.active {
    background: rgba(255, 255, 255, 1);
    width: 90px;
}

.hero-arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.arrow {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Cards Section */
.cards-section {
    position: relative;
    max-width: 90%;
    margin: -80px auto 30px;
    padding: 0 2%;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 100px 100px;
    box-shadow: 0 14px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #0099ff;
}

.card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.card h3 span {
    color: #349AFE;
    font-weight: 600;
    opacity: 0.9;
}

.card-title-blue {
    color: #349AFE !important;
}

.card h4 {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.2;
    margin-bottom: 25px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: #0099ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 2.5rem;
    gap: 8px;
    transition: transform 0.3s;
}

.card-link:hover {
    transform: translateX(5px);
}

/* Services Section */
.services-section,
.institutions-section {
    max-width: 90%;
    margin: 15px auto;
    padding: 40px 2%;
}

.section-indicator {
    width: 88px;
    height: 13px;
    background: linear-gradient(90deg, #21D866 0%, #22c55e 100%);
    margin-bottom: 20px;
}

.main-title {
    font-size: 2.8125rem;
    font-weight: 700;
    color: #349AFE;
    margin-bottom: 20px;
    line-height: 1.2;
}

.main-title.blue-dark {
    color: #150089;
}

.main-description {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    color: #555;
    width: 597px;
    height: 67px;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
    padding: 0 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: #0099ff;
}

.service-content {
    text-align: left;
    width: 201px;
    height: 90px;
}

.service-content h3 {
    font-size: 1.2rem;
    color: #0099ff;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-content p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.2;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1e3a8a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo-image {
    max-height: 40px;
    width: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        gap: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .hero {
        height: 400px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-arrow svg {
        width: 20px;
        height: 20px;
    }

    .hero-arrow-left {
        left: 10px;
    }

    .hero-arrow-right {
        right: 10px;
    }

    .hero-slide {
        padding-left: 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-indicators-static {
        left: 65px;
        bottom: 130px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .services-section .main-title {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-item {
        gap: 15px;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
    }

    .hero-arrow svg {
        width: 18px;
        height: 18px;
    }

    .hero-arrow-left {
        left: 8px;
    }

    .hero-arrow-right {
        right: 8px;
    }

    .hero-slide {
        padding-left: 15px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-indicators-static {
        left: 50px;
        bottom: 100px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0 2%;
    }

    .logo-image {
        max-height: 35px;
    }

    .card {
        padding: 30px 30px;
    }

    .services-section {
        margin: 20px auto;
    }
    
    .section-indicator {
        width: 60px;
        height: 8px;
        margin-bottom: 15px;
    }
    
    .cards-section {
        margin: -60px auto 20px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .card h4 {
        font-size: 0.9rem;
    }
    
    .card p {
        font-size: 0.85rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }
}



/* Cards específicos para sección Modelamiento y Diseño de Procesos */
.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card-image {
    width: 100%;
    height: 220px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0084ff;
    margin-bottom: 10px;
}

.card-description {
    font-weight: 600;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    max-width: 220px;
}

/* Sección de Instituciones */
.logos-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.logo-item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-item img {
    max-height: 150%;
    max-width: 255px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive para cards-grid-2 */
@media (max-width: 992px) {
    .cards-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 2%;
    }

    .main-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .card-image {
        height: 180px;
    }
    
    .main-description {
        font-size: 0.9rem;
    }
    
    .services-section,
    .institutions-section {
        padding: 25px 2%;
    }
    
    .logos-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-item {
        width: 100%;
        height: 60px;
    }
    
    .logo-item img {
        max-width: 200px;
    }
}

/* ===== Variables CSS para Testimoniales y Footer ===== */
:root {
    --blue: #349AFE;           /* Título */
    --accent: #22c55e;         /* Barra verde */
    --text: #e6e9f0;           /* Texto principal en footer (claro) */
    --muted: #bcc4d6;          /* Texto secundario */
    --border: #e5eaf3;         /* Borde de tarjetas */
    --bg-card: #ffffff;        /* Fondo de tarjetas */
    --bg-page: #ffffff;        /* Fondo general */
  }
  
  .container {
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 2%;
  }
  
  .site-footer .container {
    max-width: 90%;
    padding: 40px 2%;
  }
  
  /* ===== Encabezado ===== */
  
  /* ===== Slider (estático decorativo) ===== */
  .slider { position: relative; margin-top: 22px; }
  
  .arrow {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    background: transparent;
    color: #349AFE;
    display: grid; place-items: center;
    padding: 12px;
    width: auto; height: auto;
    border: none; border-radius: 0; box-shadow: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
  }
  
  .arrow:hover {
    background: rgba(52, 154, 254, 0.1);
    border-radius: 8px;
  }
  
  .arrow:focus {
    outline: 2px solid #349AFE;
    outline-offset: 2px;
    background: rgba(52, 154, 254, 0.1);
    border-radius: 8px;
  }
  
  .arrow:active {
    transform: translateY(-50%) scale(0.95);
  }
  .arrow.left { left: -50px; }
  .arrow.right { right: -50px; }
  .arrow svg { width: 20px; height: 20px; display: block; }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow: hidden;
    position: relative;
    align-items: stretch;
    min-height: clamp(220px, 32vh, 300px);
  }
  
  .testimonio {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
  }
  
  .testimonio.active {
    display: block;
    opacity: 1;
    margin-bottom: 28px;
  }

/* Asegurar misma altura para las tarjetas de testimoniales */
.testimonio .card {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 24px 10px 12px 10px;
    text-align: justify;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
}

.testimonio .person img {
    width: clamp(56px, 9vw, 74px);
    height: clamp(56px, 9vw, 74px);
}

.testimonio .person {
    margin-top: 8px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
  
  .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.06);
    transition: all 0.2s ease;
    position: relative;
  }
  
  .card:hover {
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1);
    transform: translateY(-1px);
  }
  
  .card:focus-within {
    outline: 2px solid #349AFE;
    outline-offset: 2px;
  }
  .card p { color: #3b4252; font-size: 15px; font-family: 'Inter', sans-serif; line-height: 1.2; }
  
  /* Centrar texto en article.card de testimoniales */
  .testimonio article.card p {
    text-align: justify;
  }
.testimonio .card strong { color: #111827; font-weight: 700; }

/* Asegura que los strong en títulos de tarjetas hereden el color del h3 */
.cards-grid .card h3 strong,
.cards-grid-2 .card h3 strong { color: inherit; }
  
  .person {
    display: flex; align-items: center; gap: 12px;
    margin-top: 10px;
  }
  .person img {
    width: 118px; height: 118px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eef2f7;
  }
  
  .name { font-weight: 600; font-size: 15px; font-family: 'Inter', sans-serif; color: #349AFE; margin: 0; line-height: 1.22; }
  .role { font-size: 15px; font-family: 'Inter', sans-serif; color: #000000; margin: 2px 0 0; line-height: 1.2; }
  
  /* Dots */
  .dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
  }
  .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
  }
  .dot.active { background: var(--blue); }
  
  /* ===== Footer ===== */
  .site-footer {
    background: none, url('img/base.jpg') center/contain no-repeat;
    background-size: cover;
    background-position: center center;
    color: var(--text);
    padding: 100px 0 18px;
    min-height: 450px;
  }
  .site-footer .container { padding-top: 40px; padding-bottom: 0; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.2fr 1.2fr;
    gap: 28px;
  }
  .logo-img { 
    height: 42px; 
    width: auto; 
    margin: 0 0 12px; 
    filter: brightness(1.1);
  }
  .brand-text { color: #d9def0; font-size: 13.5px; line-height: 1.6; margin: 0; }
  .footer-list { list-style: none; margin: 0; padding: 0; }
  .footer-list a { 
    color: #dfe6ff; 
    text-decoration: none; 
    font-size: 14px; 
    display: inline-flex;
    align-items: center;
    padding: 4px 0; 
    transition: all 0.2s ease;
    border-radius: 4px;
    min-height: 44px;
    min-width: 44px;
  }
  
  .footer-list a:hover { 
    text-decoration: underline; 
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
  }
  
  .footer-list a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
  }
  
  .contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: #e2e7ff; }
  .contact-item .icon { width: 18px; height: 18px; color: #cdd6ff; flex: 0 0 18px; margin-top: 2px; }
  .label { font-weight: 600; color: #ffffff; font-size: 13px; }
  .contact-item p { margin: 2px 0 0; font-size: 13.5px; color: #d6dcf7; }
  
  .social { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
  .social-pills { display: flex; gap: 10px; }
  .pill { 
    display:inline-flex; 
    align-items:center; 
    justify-content:center; 
    width: 26px; 
    height: 26px; 
    border: none; 
    border-radius: 6px; 
    color:#fff; 
    text-decoration:none; 
    font-weight:700; 
    font-size: 13px; 
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
  }
  
  .pill:hover { 
    background: rgba(255,255,255,0.12); 
    transform: translateY(-1px);
  }
  
  .pill:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: rgba(255,255,255,0.12);
  }
  
  .pill:active {
    transform: translateY(0);
  }
  .social-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }
  
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.25); margin-top: 100px; padding-top: 40px; text-align: center; }
  .footer-bottom p { margin: 0; color: #e4e8ff; font-size: 12.5px; }
  
  /* ===== Optimizaciones de rendimiento ===== */
  .card, .arrow, .pill, .footer-list a {
    will-change: transform;
  }
  
  /* ===== Mejoras de accesibilidad ===== */
  @media (prefers-reduced-motion: reduce) {
    .card, .arrow, .pill, .footer-list a {
      transition: none;
    }
    
    .card:hover {
      transform: none;
    }
    
    .arrow:active {
      transform: translateY(-50%);
    }
    
    .pill:hover {
      transform: none;
    }
  }
  
  
  /* ===== Responsive ===== */
  
  /* Tablet Landscape (1024px y menos) */
  @media (max-width: 1024px) {
    .container {
      max-width: 90%;
      padding: 40px 2%;
    }
    
    .main-title {
      font-size: 32px;
    }
    
    .main-description {
      font-size: 15px;
    }
    
    .grid {
      gap: 14px;
    }
    
    .footer-grid {
      grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
      gap: 24px;
    }
  }
  
  /* Tablet Portrait (768px y menos) */
  @media (max-width: 768px) {
    .container {
      padding: 30px 2%;
    }
    
    .main-title {
      font-size: 28px;
      margin: 6px 0 4px;
    }
    
    .main-description {
      font-size: 14px;
      max-width: 100%;
    }
    
    .grid {
      grid-template-columns: 1fr;
      gap: 12px;
        min-height: clamp(180px, 28vh, 260px);
    }
    .testimonio .card {
      padding: 10px 12px;
    }

    .testimonio .person img {
      width: clamp(48px, 12vw, 64px);
      height: clamp(48px, 12vw, 64px);
    }
    
    .arrow.left {
      left: 8px;
    }
    
    .arrow.right {
      right: 8px;
    }
    
    .dots {
      position: static;
      margin-top: 12px;
      justify-content: center;
      gap: 8px;
    }
    
    .card {
      padding: 16px 20px;
    }
    
    .card p {
      font-size: 14px;
    }
    
    .person {
      gap: 10px;
      margin-top: 8px;
    }
    
    .person img {
      width: 52px;
      height: 52px;
    }
    
    .name {
      font-size: 13px;
    }
    
    .role {
      font-size: 12px;
    }
    
    .footer-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    
    .footer-list a {
      padding: 10px 12px;
      min-height: 44px;
      min-width: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
    }
    
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    
    .site-footer {
      padding: 40px 0 16px;
      min-height: 400px;
    }
    
    .site-footer .container {
      padding-top: 32px;
    }
    
    .footer-bottom {
      margin-top: 80px;
      padding-top: 32px;
    }
  }
  
  /* Mobile Large (480px y menos) */
  @media (max-width: 480px) {
    .container {
      padding: 25px 2%;
    }
    
    .section-indicator {
      width: 48px;
      height: 6px;
    }
    
    .main-title {
      font-size: 24px;
      line-height: 1.2;
    }
    
    .main-description {
      font-size: 13px;
      line-height: 1.5;
    }
    
    .slider {
      margin-top: 18px;
    }
    
    .arrow {
      padding: 10px;
    }
    
    .arrow svg {
      width: 18px;
      height: 18px;
    }
    
    .arrow.left {
      left: 4px;
    }
    
    .arrow.right {
      right: 4px;
    }
    
    .grid {
      gap: 20px;
    }
    
    .card {
      padding: 14px 16px;
      border-radius: 12px;
    }
    
    .card p {
      font-size: 13px;
      line-height: 1.6;
    }
    
    .person {
      gap: 8px;
      margin-top: 6px;
    }
    
    .person img {
      width: 48px;
      height: 48px;
    }
    
    .name {
      font-size: 12px;
      line-height: 1.2;
    }
    
    .role {
      font-size: 11px;
      line-height: 1.2;
    }
    
    .dots {
      margin-top: 10px;
      gap: 6px;
    }
    
    .dot {
      width: 6px;
      height: 6px;
    }
    
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    
    .site-footer {
      padding: 32px 0 12px;
      min-height: 350px;
    }
    
    .site-footer .container {
      padding-top: 24px;
    }
    
    .logo-img {
      height: 36px;
      margin-bottom: 10px;
    }
    
    .brand-text {
      display: none;
    }
    
    .footer-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    
    .footer-list a {
      font-size: 13px;
      padding: 12px 16px;
      min-height: 44px;
      min-width: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
    }
    
    .contact-item {
      gap: 8px;
      margin-bottom: 10px;
    }
    
    .contact-item .icon {
      width: 16px;
      height: 16px;
      flex: 0 0 16px;
    }
    
    .label {
      font-size: 12px;
    }
    
    .contact-item p {
      font-size: 12px;
    }
    
    .social {
      gap: 6px;
      margin-top: 6px;
    }
    
    .social-pills {
      gap: 8px;
    }
    
    .pill {
      width: 24px;
      height: 24px;
      border-radius: 4px;
    }
    
    .social-icon {
      width: 14px;
      height: 14px;
    }
    
    .footer-bottom {
      margin-top: 60px;
      padding-top: 24px;
    }
    
    .footer-bottom p {
      font-size: 11px;
    }
  }
  
  /* Mobile Small (360px y menos) */
  @media (max-width: 360px) {
    .container {
      padding: 20px 2%;
    }
    
    .main-title {
      font-size: 22px;
    }
    
    .main-description {
      font-size: 12px;
    }
    
    .card {
      padding: 12px 14px;
    }
    
    .card p {
      font-size: 12px;
    }
    
    .person img {
      width: 44px;
      height: 44px;
    }
    
    .name {
      font-size: 11px;
    }
    
    .role {
      font-size: 10px;
    }
    
    .site-footer {
      padding: 28px 0 10px;
      min-height: 320px;
    }
    
    .logo-img {
      height: 32px;
    }
    
    .brand-text {
      display: none;
    }
  }

/* ===== Contacto (responsive) ===== */
.containerc {
  max-width: 90%;
  margin: 30px auto;
  padding: 0 2%;
  background: #ffffff;
  border-radius: 12px;
}

.contentc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-section .badge {
  background: #00D084;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 14px;
}

.form-section h1 {
  color: #1a1a4d;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.form-section .subtitle {
  color: #666;
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.5;
  margin-bottom: 20px;
}

.form-section .form-group {
  margin-bottom: 14px;
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-section input:focus,
.form-section textarea:focus {
  outline: none;
  border-color: #349AFE;
}

.form-section .submit-btn {
  background: #349AFE;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-section .submit-btn:hover { background: #2680eb; }

.map-section {
  background: #e8f4f8;
  position: relative;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
}

@media (max-width: 1024px) {
  .contentc { gap: 20px; }
}

@media (max-width: 768px) {
  .containerc { margin: 20px auto; }
  .contentc {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .map-section { min-height: 300px; }
}

@media (max-width: 480px) {
  .containerc { margin: 16px auto; }
  .form-section .submit-btn { width: 100%; }
  .map-section { min-height: 240px; }
}

  .contact-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-title {
    font-size: 2.5rem;
    color: #349AFE;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #349AFE;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: #349AFE;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #2680eb;
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #349AFE;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #2680eb;
}


.containerc {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.contentc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.form-section {
  padding: 60px 50px;
}

.badge {
  background: #00D084;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 20px;
}

h1 {
  color: #1a1a4d;
  font-size: 36px;
  margin-bottom: 15px;
  line-height: 1.2;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

input, textarea {
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: background 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  background: #ebebeb;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: #00D084;
  color: white;
  border: none;
  padding: 18px 45px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #00b871;
}

.map-section {
  background: #e8f4f8;
  position: relative;
  min-height: 500px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .content {
      grid-template-columns: 1fr;
  }
  
  .form-section {
      padding: 40px 30px;
  }

  h1 {
      font-size: 28px;
  }

  .map-section {
      min-height: 300px;
  }
}