/* =========================================
   HYDRO-CONECTA - ESTILOS MODERNOS v2.0
   Páginas: index.html, nosotros.html
   ========================================= */

/* ==================== 
   1. VARIABLES CSS
   ==================== */
:root {
    /* Colores Principales */
    --color-primary: #0077b6;
    --color-secondary: #00b4d8;
    --color-accent: #90e0ef;
    --color-dark: #03045e;
    --color-light: #caf0f8;
    --color-white: #ffffff;
    
    /* Colores de Texto */
    --color-text: #1e293b;
    --color-text-light: #64748b;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 119, 182, 0.95), rgba(0, 180, 216, 0.85));
    --gradient-footer: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Bordes Redondeados */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Tipografía */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ==================== 
   2. RESET Y BASE
   ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3;
}

p, a, button, input, textarea, select {
    font-family: var(--font-family);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ==================== 
   3. FONDO ANIMADO (OLAS SVG)
   ==================== */
.waves-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
}

.wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
}

.wave-1 {
    z-index: 4;
    opacity: 0.6;
    bottom: 0;
    animation: wave-animation-1 25s linear infinite;
}

.wave-2 {
    z-index: 3;
    opacity: 0.5;
    bottom: 10px;
    animation: wave-animation-2 20s linear infinite reverse;
}

.wave-3 {
    z-index: 2;
    opacity: 0.4;
    bottom: 20px;
    animation: wave-animation-3 30s linear infinite;
}

.wave-4 {
    z-index: 1;
    opacity: 0.35;
    bottom: 30px;
    animation: wave-animation-4 35s linear infinite reverse;
}

@keyframes wave-animation-1 {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes wave-animation-2 {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes wave-animation-3 {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes wave-animation-4 {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* ==================== 
   4. BARRA DE NAVEGACIÓN
   ==================== */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: var(--transition);
}

.navbar-brand i {
    font-size: 1.8rem;
}

.navbar-brand:hover {
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-login {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-login::after {
    display: none;
}

.nav-link-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Botón Hamburguesa (Mobile) */
.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.navbar-toggler span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar-toggler.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ==================== 
   5. BANNER PRINCIPAL (HERO)
   ==================== */
.presentation-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(202, 240, 248, 0.5));
}

.banner-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.banner-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.banner-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.3);
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin: 0;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.banner-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-dark);
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* Estadísticas del Banner */
.banner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 119, 182, 0.3);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.stat-item div strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
}

.stat-item div span {
    font-size: 0.9rem;
    color: var(--color-dark);
    opacity: 0.8;
}

/* Tarjetas Visuales del Banner */
.banner-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visual-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 119, 182, 0.1);
}

.visual-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.visual-card i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.visual-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.visual-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Divisor de Ola */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: white;
}


/* ==================== 
   6. VALORES INSTITUCIONALES
   ==================== */
.institutional-values {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--color-light);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.values-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-light);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.card-icon.mission-icon {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: white;
}

.card-icon.vision-icon {
    background: linear-gradient(135deg, #00b4d8, #90e0ef);
    color: white;
}

.card-icon.sustainability-icon {
    background: linear-gradient(135deg, #48cae4, #90e0ef);
    color: white;
}

.value-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.value-card .card-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    text-align: center;
}


/* ==================== 
   7. GALERÍA DE PROYECTOS
   ==================== */
.projects-gallery {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 119, 182, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: white;
    width: 100%;
}

.project-info i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1rem;
    opacity: 0.9;
}


/* ==================== 
   8. FOOTER MODERNO
   ==================== */
.modern-footer {
    background: var(--gradient-footer);
    color: white;
    padding: 4rem 2rem 2rem;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 2rem;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact i {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

.footer-bottom i {
    color: #ef4444;
}


/* ==================== 
   9. RESPONSIVE DESIGN
   ==================== */

/* Tablets (1024px y menos) */
@media (max-width: 1024px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
        transition: right 0.3s ease;
        width: 280px;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-toggler {
        display: flex;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .banner-title {
        font-size: 2.8rem;
    }
    
    .banner-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .banner-visual {
        order: -1;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Móviles (768px y menos) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .navbar-container {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .presentation-banner {
        padding: 6rem 1rem 3rem;
        min-height: auto;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .visual-card {
        padding: 1.5rem;
    }
    
    .visual-card i {
        font-size: 2.5rem;
    }
    
    .visual-card h3 {
        font-size: 1.1rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .project-card {
        height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        font-size: 1.5rem;
    }
}

/* Móviles pequeños (480px y menos) */
@media (max-width: 480px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-tag {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .stat-item i {
        font-size: 2rem;
    }
    
    .stat-item div strong {
        font-size: 1.3rem;
    }
    
    .visual-card i {
        font-size: 2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .section-tag {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}


/* ==================== 
   10. PÁGINA NOSOTROS
   ==================== */

/* Hero About Section */
.about-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.about-hero-content {
    max-width: 1200px;
    text-align: center;
    z-index: 1;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.about-hero p {
    font-size: 1.3rem;
    color: var(--color-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: white;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.stat-box .value {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-box .label {
    font-size: 1.15rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* About Content Section */
.about-content-section {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
}

.about-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-text-subtitle {
    margin-top: 3rem !important;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 500px;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Team Section */
.team-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, white 0%, rgba(202, 240, 248, 0.3) 100%);
    position: relative;
}

.team-carousel-container {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.team-grid {
    max-width: 1400px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.team-card-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

.team-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 119, 182, 0.3), transparent 50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-card-image::before {
    opacity: 1;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-image img {
    transform: scale(1.1);
}

.team-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 119, 182, 0.95), transparent);
    color: white;
    z-index: 2;
}

.team-card-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-card-role {
    font-size: 1.05rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-card-role::before {
    content: '';
    width: 30px;
    height: 2px;
    background: white;
    opacity: 0.8;
}

/* Splide Carousel Customization */
#teamCarousel .splide__arrow {
    background: var(--gradient-primary);
    opacity: 0.9;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

#teamCarousel .splide__arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

#teamCarousel .splide__arrow svg {
    fill: white;
}

#teamCarousel .splide__pagination {
    bottom: -3rem;
}

#teamCarousel .splide__pagination__page {
    background: var(--color-primary);
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

#teamCarousel .splide__pagination__page.is-active {
    background: var(--color-primary);
    opacity: 1;
    transform: scale(1.3);
}


/* ==================== 
   11. RESPONSIVE - PÁGINA NOSOTROS
   ==================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero p {
        font-size: 1.1rem;
    }
    
    .stat-box .value {
        font-size: 2.5rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================== 
   12. PÁGINA FORMULARIO PROCEDURAL
   ==================== */

/* Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

/* Progress Steps */
.form-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,249,255,0.9) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
}

.form-progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-accent) 0%, 
        var(--color-accent) 25%, 
        #d1d5db 25%, 
        #d1d5db 100%
    );
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 10px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-connector {
    flex: 1;
    height: 4px;
    background: #d1d5db;
    margin: 0 0.5rem;
    border-radius: 10px;
    position: relative;
    z-index: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    z-index: 1;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.step-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.step.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

.step.active .step-number::after {
    border-color: var(--color-primary);
    animation: ripple 2s ease-in-out infinite;
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: 700;
    transform: scale(1.05);
}

.step.completed .step-number {
    background: linear-gradient(135deg, var(--color-accent) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.step.completed .step-number::before {
    content: '✓';
    font-size: 1.4rem;
    font-weight: 900;
    animation: checkmark 0.5s ease;
}

.step.completed .step-label {
    color: var(--color-accent);
    font-weight: 600;
}

.step.completed + .step-connector {
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4), 0 0 0 0 rgba(2, 132, 199, 0.3);
    }
    50% {
        box-shadow: 0 8px 28px rgba(2, 132, 199, 0.6), 0 0 0 8px rgba(2, 132, 199, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Form Card */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

/* Form Step */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-step h2 i {
    color: var(--color-primary);
}

.form-step p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Form Group */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #e53e3e;
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53e3e;
    background: #fff5f5;
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
}

.char-counter {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-top: 0.4rem;
}

/* Rating Group */
.rating-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.rating-option {
    flex: 1;
    min-width: 120px;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    text-align: center;
}

.rating-option label:hover {
    border-color: var(--color-primary);
    background: white;
    transform: translateY(-2px);
}

.rating-option input[type="radio"]:checked + label {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.rating-icon {
    font-size: 1.8rem;
}

.rating-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: #f9fafb;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    border-color: var(--color-primary);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0;
    cursor: pointer;
}

/* Confirmation Summary */
.confirmation-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid var(--color-primary);
}

.confirmation-summary .summary-section {
    margin-bottom: 2rem;
}

.confirmation-summary .summary-section:last-child {
    margin-bottom: 0;
}

.confirmation-summary h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-grid {
    display: grid;
    gap: 0.75rem;
}

.summary-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(2, 132, 199, 0.2);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.summary-value {
    color: #444;
    font-size: 0.95rem;
    word-break: break-word;
}

/* Form Row (múltiples campos) */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

/* Familia Dinámica */
.familia-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.familia-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.familia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.familia-header h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.btn-remove-familiar {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-remove-familiar:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

.btn-add {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-add:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.familia-summary {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
}

.familia-summary h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}


/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.btn-secondary,
.btn-primary {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--color-dark);
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateX(-2px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    margin-left: auto;
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-dev {
    padding: 0.9rem 1.5rem;
    border: 2px solid #8b5cf6;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
    letter-spacing: 0.5px;
}

.btn-dev:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-dev:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

/* Result Messages */
.result-success,
.result-error {
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.result-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.result-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #e53e3e;
}

.success-message i,
.error-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-success i {
    color: #10b981;
}

.result-error i {
    color: #e53e3e;
}

.success-message h3,
.error-message h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.success-message p,
.error-message p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 0.75rem;
}

.hidden {
    display: none;
}

/* ==================== 
   13. RESPONSIVE - PÁGINA FORMULARIO
   ==================== */

@media (max-width: 768px) {
    .form-container {
        padding: 6rem 1rem 2rem;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .form-step h2 {
        font-size: 1.6rem;
    }
    
    .form-progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.5rem 0.5rem;
        max-width: 100%;
    }
    
    .form-progress-steps::before {
        display: none;
    }
    
    .step-connector {
        display: none;
    }
    
    .step {
        padding: 0.75rem;
        min-width: 80px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .rating-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .rating-option {
        width: 100%;
    }
    
    .summary-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-primary {
        margin-left: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.5rem 1rem;
    }
    
    .form-step h2 {
        font-size: 1.4rem;
    }
    
    .step {
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
}
