/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES (Fundación Levántate y Decide)
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary-hsl: 199, 87%, 63%; /* Light Sky Blue #52c0f2 */
    --color-accent-hsl: 51, 100%, 48%;   /* Sunshine Yellow #f6d300 */
    --color-purple-hsl: 275, 80%, 65%;   /* Amethyst/Support Purple */
    --color-emerald-hsl: 142, 70%, 45%;   /* Emerald Green/Well-being */
    
    --color-primary: hsl(var(--color-primary-hsl));
    --color-yellow:  hsl(var(--color-accent-hsl));
    --color-purple:  hsl(var(--color-purple-hsl));
    --color-emerald: hsl(var(--color-emerald-hsl));
    
    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(199, 87%, 65%) 0%, hsl(207, 90%, 55%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(51, 100%, 55%) 0%, hsl(43, 100%, 45%) 100%);
    --gradient-text: linear-gradient(135deg, hsl(199, 87%, 75%) 0%, hsl(51, 100%, 65%) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    /* Neutrals */
    --bg-dark-deep: hsl(217, 49%, 9%);     /* Deep rich navy */
    --bg-dark-card: rgba(15, 26, 44, 0.4);  /* Translucent card backing */
    --text-white: #ffffff;
    --text-muted: hsl(215, 20%, 75%);
    --text-dimmed: hsl(215, 16%, 60%);
    
    /* Layout & Shadows */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-glass: 1px solid rgba(255, 255, 255, 0.06);
    --border-glass-bright: 1px solid rgba(255, 255, 255, 0.12);
    --shadow-premium: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow-blue: 0 0 30px rgba(82, 192, 242, 0.25);
    --shadow-glow-yellow: 0 0 30px rgba(246, 211, 0, 0.2);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 14px; /* Scaled down for mobile base */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   AMBIENT BACKGROUND BLOBS & CANVAS
   ========================================================================== */

.blob-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.22; /* More vibrant background blobs to shine through glass */
    mix-blend-mode: screen;
    animation: float-blobs 22s infinite alternate ease-in-out;
}

.blob-blue {
    top: -10%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(82, 192, 242, 0) 70%);
}

.blob-yellow {
    bottom: -10%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-yellow) 0%, rgba(246, 211, 0, 0) 70%);
    animation-delay: -5s;
}

.blob-purple {
    top: 30%;
    left: 35%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-purple) 0%, rgba(168, 85, 247, 0) 70%);
    animation-delay: -10s;
    opacity: 0.14;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   MOBILE-FIRST GLOBAL LAYOUT & CONTAINERS
   ========================================================================== */

.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* Typography base */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

/* Common Section Headers */
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-white);
}

.section-subtitle {
    font-size: 0.95rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 36px auto;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    width: 100%; /* Full width by default on Mobile First */
}

.btn-primary {
    background: var(--gradient-accent);
    color: #0c1524;
    box-shadow: var(--shadow-glow-yellow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 211, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border: var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
    background: #20ba59;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.coming-soon-tag {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.5em;
    color: var(--color-yellow);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    text-shadow: 0 0 25px rgba(246, 211, 0, 0.4);
    background: linear-gradient(90deg, var(--color-yellow) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: fade-pulse 2s infinite alternate ease-in-out;
    padding-left: 0.5em; /* Compensate for letter-spacing to center perfectly */
}

@keyframes fade-pulse {
    0% {
        opacity: 0.75;
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1.03);
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(82, 192, 242, 0.08);
    border: 1px solid rgba(82, 192, 242, 0.2);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    text-align: center;
    max-width: 100%;
    transition: var(--transition-smooth);
}

.badge-glow {
    background: rgba(246, 211, 0, 0.06);
    border: 1px solid rgba(246, 211, 0, 0.3);
    color: var(--color-yellow);
    box-shadow: 0 0 15px rgba(246, 211, 0, 0.1);
    animation: badge-pulse 2s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(246, 211, 0, 0.1);
        border-color: rgba(246, 211, 0, 0.3);
    }
    100% {
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(246, 211, 0, 0.25);
        border-color: rgba(246, 211, 0, 0.6);
        background: rgba(246, 211, 0, 0.09);
    }
}

/* ==========================================================================
   MOBILE-FIRST COMPONENT LAYOUTS
   ========================================================================== */

/* HEADER */
.main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    margin-bottom: 24px;
}

/* Logo 3x size scale */
.header-logo-container {
    width: 100%;
    max-width: 260px; /* 3x footprint on mobile */
    display: flex;
    justify-content: center;
}

.header-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: float-logo 4s ease-in-out infinite;
}

.header-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
    color: var(--color-yellow);
    background: rgba(246, 211, 0, 0.08);
    border-color: rgba(246, 211, 0, 0.4);
    box-shadow: 0 0 18px rgba(246, 211, 0, 0.25);
    transform: translateY(-3px);
}

.svg-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 56px auto;
}

.main-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 300;
    color: var(--text-muted);
}

/* EMERGENCY CRITICAL BOX */
.emergency-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
    background: rgba(239, 68, 68, 0.02);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.emergency-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: #ef4444;
}

.emergency-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    animation: pulse-red 2s infinite;
}

.emergency-text {
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 16px;
    font-weight: 500;
}

.emergency-buttons {
    display: flex;
    justify-content: center;
}

.emergency-buttons .btn {
    width: 100%; /* Keep WhatsApp button comfortable and large */
    max-width: 280px;
}

/* PILLARS / SERVICES SECTION */
.pillars-section {
    margin-bottom: 56px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-premium);
}

.pillar-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    transform: scale(1); /* Base transform for fluid Firefox scale transition */
}

.pillar-card:hover .pillar-icon-wrapper {
    transform: scale(1.1); /* Fluid CSS hover scale */
}

.blue-glow {
    background: rgba(82, 192, 242, 0.08);
    border: 1px solid rgba(82, 192, 242, 0.2);
    color: var(--color-primary);
}

.pillar-card:hover .blue-glow {
    background: var(--color-primary);
    color: #0c1524;
    box-shadow: var(--shadow-glow-blue);
}

.yellow-glow {
    background: rgba(246, 211, 0, 0.08);
    border: 1px solid rgba(246, 211, 0, 0.2);
    color: var(--color-yellow);
}

.pillar-card:hover .yellow-glow {
    background: var(--color-yellow);
    color: #0c1524;
    box-shadow: var(--shadow-glow-yellow);
}

.purple-glow {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--color-purple);
}

.pillar-card:hover .purple-glow {
    background: var(--color-purple);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

.emerald-glow {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-emerald);
}

.pillar-card:hover .emerald-glow {
    background: var(--color-emerald);
    color: #0c1524;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.pillar-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.pillar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.pillar-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ==========================================================================
   GLASSMOPHISM REGISTRATION & GOOGLE FORMS WITH SECURITY SHIELD
   ========================================================================== */

.register-section {
    margin-bottom: 56px;
    max-width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: var(--shadow-premium), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.glass-card-content {
    padding: 24px 16px;
}

.card-title {
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-muted);
    margin: 0 auto 28px auto;
    line-height: 1.5;
}

/* Relative Container for iframe and locking Shield overlay */
.google-form-relative-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(10, 18, 32, 0.5);
    border: var(--border-glass);
    min-height: 400px;
}

.google-form-iframe {
    width: 100%;
    display: block;
    border: none;
    border-radius: var(--radius-md);
    transition: filter 0.4s ease;
    filter: blur(12px); /* Locked blur state by default */
    pointer-events: none; /* Disable interaction initially */
}

/* Shield Overlay with advanced Glass effect */
.privacy-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 18, 32, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 20px;
}

.shield-content {
    max-width: 450px;
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

.shield-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(82, 192, 242, 0.1);
    border: 1px solid rgba(82, 192, 242, 0.25);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: var(--shadow-glow-blue);
}

.shield-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.shield-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.shield-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.shield-content p strong {
    color: var(--text-white);
}

.shield-content .btn {
    max-width: 240px;
}

/* Unlocked State */
.google-form-iframe.unlocked {
    filter: blur(0px);
    pointer-events: auto;
}

.privacy-shield.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   PRIVACY POLICY MODAL (COLOMBIA LEY 1581)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-card {
    background: rgba(15, 26, 44, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium), inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
    animation: modal-show 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: var(--border-glass);
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--text-white);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-dimmed);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: #ef4444;
}

.modal-body-content {
    overflow-y: auto;
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Scrollbar styles for modal */
.modal-body-content::-webkit-scrollbar {
    width: 6px;
}

.modal-body-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

.modal-body-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.modal-body-content::-webkit-scrollbar-thumb:hover {
    background: rgba(82, 192, 242, 0.3);
}

.policy-intro {
    margin-bottom: 20px;
}

.policy-intro strong {
    color: var(--text-white);
}

.policy-section {
    margin-bottom: 24px;
}

.policy-section h3 {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.policy-section p {
    color: var(--text-muted);
}

.policy-section p strong {
    color: var(--text-white);
}

.policy-section ul {
    margin-top: 8px;
    padding-left: 20px;
}

.policy-section ul li {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.policy-section ul li strong {
    color: var(--text-white);
}

.modal-footer {
    padding: 16px 24px;
    border-top: var(--border-glass);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn {
    width: auto;
    min-width: 180px;
}

.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */

.team-section {
    margin-bottom: 56px;
    max-width: 100%;
    text-align: center;
}

.team-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: var(--shadow-premium), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
    padding: 24px 16px;
}

.team-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--border-glass-bright);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: block;
    width: 100%;
    max-height: 380px;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.team-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12, 21, 36, 0) 50%, rgba(12, 21, 36, 0.75) 100%);
    pointer-events: none;
}

.team-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 16px 12px 16px;
    font-size: 0.85rem;
    color: var(--text-white);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 2;
    text-align: center;
    background: linear-gradient(0deg, rgba(12, 21, 36, 0.95) 0%, rgba(12, 21, 36, 0) 100%);
}

.team-image-wrapper:hover .team-image {
    transform: scale(1.02);
}

.team-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.team-details h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    line-height: 1.3;
}

.team-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.team-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.team-feature-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.team-feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    transform: scale(1) rotate(0deg); /* Base transform for fluid Firefox scale/rotate transition */
}

.team-feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg); /* Fluid CSS hover scale/rotate for emojis */
}

.feature-text h4 {
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.feature-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ==========================================================================
   SOCIAL MEDIA SPOTLIGHT SECTION
   ========================================================================== */

.socials-section {
    margin-bottom: 56px;
    max-width: 100%;
    text-align: center;
}

.socials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.social-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Base background glow behind card */
.social-card-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.social-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-premium);
}

.social-card:hover .social-card-bg-glow {
    opacity: 0.15;
}

.social-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    z-index: 1;
    transform: scale(1) rotate(0deg); /* Base transform for fluid Firefox scale/rotate transition */
}

.social-card:hover .social-icon-wrapper {
    transform: scale(1.15) rotate(5deg); /* Fluid CSS hover scale/rotate for social icons */
}

.social-card-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.social-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--text-white);
    z-index: 1;
}

.social-tag {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 20px;
    z-index: 1;
}

.social-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.social-benefits li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding-left: 6px;
}

.social-card .btn {
    margin-top: auto;
    z-index: 1;
}

/* Card Brand Colors & Glowing Overrides */

/* 1. Instagram */
.instagram-glow {
    background: rgba(225, 48, 108, 0.1);
    border: 1px solid rgba(225, 48, 108, 0.3);
    color: #e1306c;
}
.social-card.instagram-card:hover .instagram-glow {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(225, 48, 108, 0.45);
}
.social-card.instagram-card:hover .social-card-bg-glow {
    background: radial-gradient(circle, rgba(225, 48, 108, 0.3) 0%, rgba(225, 48, 108, 0) 65%);
}
.social-card.instagram-card:hover .social-tag {
    color: #f56c9a;
}
.btn-instagram {
    background: rgba(225, 48, 108, 0.08);
    color: var(--text-white);
    border: 1px solid rgba(225, 48, 108, 0.3);
}
.social-card.instagram-card:hover .btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.3);
}

/* 2. Facebook */
.facebook-glow {
    background: rgba(24, 119, 242, 0.1);
    border: 1px solid rgba(24, 119, 242, 0.3);
    color: #1877f2;
}
.social-card.facebook-card:hover .facebook-glow {
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(24, 119, 242, 0.45);
}
.social-card.facebook-card:hover .social-card-bg-glow {
    background: radial-gradient(circle, rgba(24, 119, 242, 0.3) 0%, rgba(24, 119, 242, 0) 65%);
}
.social-card.facebook-card:hover .social-tag {
    color: #64a1f5;
}
.btn-facebook {
    background: rgba(24, 119, 242, 0.08);
    color: var(--text-white);
    border: 1px solid rgba(24, 119, 242, 0.3);
}
.social-card.facebook-card:hover .btn-facebook {
    background: #1877f2;
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

/* 3. WhatsApp */
.whatsapp-glow {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
}
.social-card.whatsapp-card:hover .whatsapp-glow {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.45);
}
.social-card.whatsapp-card:hover .social-card-bg-glow {
    background: radial-gradient(circle, rgba(37, 211, 102, 0.3) 0%, rgba(37, 211, 102, 0) 65%);
}
.social-card.whatsapp-card:hover .social-tag {
    color: #5ff598;
}
.social-card.whatsapp-card .btn-whatsapp {
    background: rgba(37, 211, 102, 0.08);
    color: var(--text-white);
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: none;
}
.social-card.whatsapp-card:hover .btn-whatsapp {
    background: #25d366;
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.main-footer {
    border-top: var(--border-glass);
    padding: 48px 0;
    margin-top: 48px;
    text-align: center;
}

/* Footer Logo 3x size scale */
.footer-logo-container {
    width: 100%;
    max-width: 220px; /* 3x footprint on mobile */
    margin: 0 auto 12px auto;
}

.footer-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.footer-slogan {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.info-item {
    line-height: 1.5;
    color: var(--text-dimmed);
}

.info-item strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 2px;
}

.info-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-item a:hover {
    color: var(--color-yellow);
    text-decoration: underline;
}

.map-link {
    display: inline;
}

.transit-note {
    font-size: 0.75rem;
    color: var(--color-yellow);
    display: inline;
    margin-left: 6px;
    opacity: 0.9;
}

/* Allies Section */
.footer-allies {
    margin-bottom: 32px;
}

.allies-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-dimmed);
    margin-bottom: 12px;
}

.allies-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ally-badge {
    width: 100%;
    max-width: 220px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    transition: var(--transition-smooth);
}

.ally-badge:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-dimmed);
    line-height: 1.5;
}

.footer-copyright p {
    margin-bottom: 4px;
}

.privacy-note {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes float-logo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes float-blobs {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
    50% { transform: translate(30px, -50px) rotate(180deg) scale(1.05); }
    100% { transform: translate(-25px, 25px) rotate(360deg) scale(0.95); }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes modal-show {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES - PROGRESSIVE DESKTOP ENHANCEMENTS)
   ========================================================================== */

/* Tablets / Screens wider than 768px */
@media (min-width: 768px) {
    html {
        font-size: 15px; /* Base scaling up */
    }
    
    .page-container {
        padding: 0 24px;
    }
    
    /* Layout Header */
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 32px 0;
        margin-bottom: 40px;
    }
    
    .header-logo-container {
        max-width: 360px; /* Scaling logo to 3x based on tablet */
        justify-content: flex-start;
    }
    
    /* Buttons no longer force full width */
    .btn {
        width: auto;
    }
    
    /* Hero section overrides */
    .hero-section {
        max-width: 800px;
        margin: 0 auto 64px auto;
    }
    
    .main-title {
        font-size: 3.2rem;
        line-height: 1.15;
    }
    
    .hero-description {
        font-size: 1.15rem;
        margin-bottom: 36px;
    }
    
    .emergency-container {
        max-width: 600px;
        padding: 24px 32px;
    }
    
    /* Grid system layouts */
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .socials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .social-card.whatsapp-card {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    
    .glass-card-content {
        padding: 40px 32px;
    }
    
    .card-title {
        font-size: 2rem;
    }
    
    .google-form-relative-container {
        min-height: 550px;
    }
    
    /* Footer layout */
    .footer-logo-container {
        max-width: 320px;
    }
    
    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .info-item strong {
        display: inline;
        margin-right: 4px;
    }
    
    .allies-badges {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    /* Team Tablet Overrides */
    .team-grid {
        padding: 36px 28px;
        gap: 32px;
    }
    
    .team-image-wrapper {
        max-height: 480px;
    }
}

/* Desktop Screens wider than 1024px */
@media (min-width: 1024px) {
    html {
        font-size: 16px; /* Target desktop layout */
    }
    
    /* Logo scales to true 3x size on large screens */
    .header-logo-container {
        max-width: 450px; 
    }
    
    .main-title {
        font-size: 3.8rem;
    }
    
    .hero-section {
        max-width: 850px;
        margin: 0 auto 80px auto;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    .socials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .social-card.whatsapp-card {
        grid-column: span 1;
        max-width: none;
        margin: 0;
    }

    
    .pillar-card {
        padding: 36px 32px;
    }
    
    .glass-card-content {
        padding: 56px 48px;
    }
    
    .card-title {
        font-size: 2.2rem;
    }
    
    .google-form-relative-container {
        min-height: 800px;
    }
    
    .footer-logo-container {
        max-width: 380px;
    }
    
    /* Blobs scale and gain size on desktop */
    .blob-blue {
        width: 700px;
        height: 700px;
    }
    
    .blob-yellow {
        width: 650px;
        height: 650px;
    }
    
    /* Team Desktop Overrides */
    .team-grid {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 40px;
        padding: 48px;
    }
    
    .team-image-wrapper {
        max-height: 520px;
    }
    .team-details h3 {
        font-size: 1.8rem;
    }
}

/* Utilidad para SEO Accesible */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
