/* --- VARIABLES & BASE (REDISEÑO INMUN.IO) --- */
:root {
    --primary-color: #2B6777;
    /* Azul Oxígeno - Autoridad */
    --secondary-color: #52AB98;
    /* Verde Microbiota - Salud */
    --accent-color: #E88D67;
    /* Coral Vital - CTAs */
    --bg-color: #F2F2F2;
    /* Arena Suave - Fondo */
    --text-color: #1A1A1A;
    /* Gris profundo - Legibilidad */
    --text-light: #64748B;

    --success-bg: rgba(82, 171, 152, 0.1);
    --success-border: rgba(82, 171, 152, 0.3);
    --danger-bg: rgba(239, 68, 68, 0.05);
    --danger-border: rgba(239, 68, 68, 0.2);

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.padding-y {
    padding: 6rem 0;
}

.mt-2 {
    margin-top: 2rem;
}

.bg-light {
    background-color: var(--bg-white);
}

/* Images Utils */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-rounded {
    border-radius: 16px;
}

.img-warm {
    /* Filtro orgánico cálido sugerido */
    filter: sepia(10%) saturate(110%) contrast(105%);
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(43, 103, 119, 0.1);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 4px 15px rgba(232, 141, 103, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background-color: #d1754f;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 8px 25px rgba(232, 141, 103, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(43, 103, 119, 0.05);
    box-shadow: 0 8px 25px rgba(43, 103, 119, 0.1);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

/* Base Video Styles */
video {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


/* Badges */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--success-bg);
    color: #059669;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.badge-blue {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent-teal);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(242, 242, 242, 0.9);
    /* Arena suave con opacidad */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.logo-large {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- HERO --- */
.hero {
    position: relative;
    padding: 10rem 0 4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top right, rgba(0, 180, 216, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(10, 37, 64, 0.05), transparent 40%);
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
}

.glow-1 {
    top: -200px;
    right: -100px;
    background: var(--secondary-cyan);
    animation: float 10s ease-in-out infinite;
}

.glow-2 {
    bottom: -300px;
    left: -200px;
    background: var(--accent-teal);
    animation: float 12s ease-in-out infinite reverse;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    margin-top: 1rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- SECTIONS --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-2-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.content-text,
.content-graphics {
    flex: 1;
}

/* Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
}

.card-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    position: relative;
    overflow: hidden;
}

.card-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #10B981;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.card-danger .card-icon {
    background: #FCA5A5;
    color: #991B1B;
}

.card-success .card-icon {
    background: #6EE7B7;
    color: #065F46;
}

.glass-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.card-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.card-list li::before {
    content: '•';
    color: var(--accent-teal);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Pathology Cards */
.pathology-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(43, 103, 119, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pathology-card:hover {
    box-shadow: 0 20px 40px rgba(43, 103, 119, 0.08);
    transform: translateY(-4px);
}

.p-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--bg-main);
    color: var(--primary-blue);
}

.pathology-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.p-subtitle {
    font-size: 0.9rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.pathology-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.reversion-box {
    background: rgba(0, 180, 216, 0.05);
    border-left: 3px solid var(--secondary-cyan);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
}

/* Lists and quotes */
.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check-icon {
    font-size: 1.2rem;
}

.highlight-quote {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    color: var(--primary-blue);
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid var(--secondary-cyan);
}

/* --- FOOTER --- */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 4rem 0 2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- FORM & INPUTS FINESSE --- */
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(43, 103, 119, 0.2) !important;
    transition: var(--transition);
}

input,
select,
textarea {
    transition: var(--transition);
}

/* --- ANIMATIONS & UTILS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .flex-row {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero {
        padding: 8rem 0 5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}