/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --primary:#0f4c81;
    --primary-dark:#0a355a;
    --accent:#1aa36f;
    --bg:#f4f8fb;
    --white:#ffffff;
    --text:#1b2430;
    --muted:#5c6773;
    --border:#dfe7ee;
    --shadow:0 18px 40px rgba(15,76,129,0.10);
    --shadow-soft:0 10px 24px rgba(15,76,129,0.07);
    --whatsapp:#25D366;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(26,163,111,0.08), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(15,76,129,0.10), transparent 32%),
        linear-gradient(180deg,#f8fbff 0%,#f4f8fb 100%);
    color:var(--text);
    line-height:1.6;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* =========================
   HEADER
========================= */
.site-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:rgba(255,255,255,0.6);
    border-bottom:1px solid rgba(255,255,255,0.4);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    z-index:1000;
}

.nav-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 0;
    gap:20px;
}

.logo{
    height:120px;
    display:block;
}

.site-nav{
    display:flex;
    align-items:center;
    gap:22px;
    flex-wrap:wrap;
}

.site-nav a{
    font-weight:600;
    color:var(--primary-dark);
    transition:0.2s;
}

.site-nav a:hover{
    color:var(--primary);
}

.btn-nav{
    background:var(--primary);
    color:white !important;
    padding:10px 18px;
    border-radius:10px;
    font-weight:700;
    box-shadow:var(--shadow-soft);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:130px;
}

/* =========================
   HERO
========================= */
.hero{
    padding:150px 0 80px;
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at top left, rgba(26,163,111,0.15), transparent 35%),
        radial-gradient(circle at top right, rgba(15,76,129,0.15), transparent 35%),
        #f4f8fb;
}

.hero-glass{
    background:
        radial-gradient(circle at top left, rgba(26,163,111,0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(15,76,129,0.16), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.60) 0%, rgba(244,248,251,0.85) 100%);
}

.hero-bg-shape{
    position:absolute;
    border-radius:50%;
    filter:blur(70px);
    opacity:0.55;
    pointer-events:none;
}

.hero-shape-1{
    width:360px;
    height:360px;
    background:rgba(26,163,111,0.18);
    top:-60px;
    left:-100px;
}

.hero-shape-2{
    width:420px;
    height:420px;
    background:rgba(15,76,129,0.18);
    top:-80px;
    right:-120px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.2fr 0.8fr;
    gap:40px;
    align-items:center;
    position:relative;
    z-index:2;
}

.badge{
    display:inline-block;
    background:rgba(26,163,111,0.12);
    color:var(--accent);
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-bottom:18px;
}

.hero h1{
    font-size:52px;
    line-height:1.05;
    color:var(--primary-dark);
    margin-bottom:20px;
}

.hero-description{
    font-size:18px;
    color:var(--muted);
    margin-bottom:25px;
    max-width:700px;
}

.hero-actions{
    display:flex;
    gap:14px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.btn-primary{
    background:var(--primary);
    color:white;
    padding:14px 22px;
    border-radius:10px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:var(--shadow);
    border:none;
    cursor:pointer;
}

.btn-primary:hover{
    background:var(--primary-dark);
}

.btn-secondary{
    background:white;
    color:var(--primary-dark);
    padding:14px 22px;
    border-radius:10px;
    font-weight:700;
    border:1px solid var(--border);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.btn-secondary:hover{
    border-color:var(--primary);
}

/* =========================
   MINI STATS
========================= */
.hero-mini-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.mini-stat{
    background:white;
    border-radius:14px;
    padding:18px;
    box-shadow:var(--shadow-soft);
}

.mini-stat strong{
    display:block;
    color:var(--primary-dark);
    margin-bottom:5px;
    font-size:17px;
}

.mini-stat span{
    color:var(--muted);
    font-size:14px;
}

/* =========================
   HERO PANEL
========================= */
.hero-visual{
    display:flex;
    justify-content:center;
}

.glass-panel{
    background:white;
    border-radius:20px;
    box-shadow:var(--shadow);
    overflow:hidden;
    width:100%;
}

.glass-top{
    display:flex;
    gap:8px;
    padding:12px 16px;
    background:#f4f8fb;
}

.dot{
    width:10px;
    height:10px;
    border-radius:50%;
}

.dot-1{ background:#ff5f57; }
.dot-2{ background:#febc2e; }
.dot-3{ background:#28c840; }

.glass-body{
    padding:28px;
}

.panel-label{
    display:inline-block;
    color:var(--accent);
    font-size:13px;
    font-weight:700;
    margin-bottom:10px;
}

.glass-body h3{
    color:var(--primary-dark);
    font-size:28px;
    margin-bottom:16px;
}

.panel-list{
    padding-left:18px;
    margin-bottom:20px;
    color:var(--muted);
}

.panel-list li{
    margin-bottom:10px;
}

.panel-card-soft{
    background:#f4f8fb;
    padding:16px;
    border-radius:12px;
}

.panel-soft-title{
    font-weight:700;
    margin-bottom:6px;
    color:var(--primary-dark);
}

.panel-soft-text{
    color:var(--muted);
    font-size:14px;
}

/* =========================
   HERO SHOWCASE CON ILUSTRACION
========================= */
.hero-showcase{
    overflow:hidden;
}

.showcase-body{
    display:grid;
    grid-template-columns:1fr 0.9fr;
    gap:24px;
    align-items:center;
}

.showcase-copy{
    position:relative;
    z-index:2;
}

.showcase-art{
    position:relative;
    min-height:360px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:10px;
}

.hero-medical-image{
    position:relative;
    z-index:2;
    max-width:100%;
    max-height:340px;
    object-fit:contain;
    filter:drop-shadow(0 22px 32px rgba(15,76,129,0.18));
    animation:floatImage 4.5s ease-in-out infinite;
}

.art-glow{
    position:absolute;
    border-radius:50%;
    filter:blur(40px);
    z-index:1;
}

.art-glow-1{
    width:180px;
    height:180px;
    background:rgba(26,163,111,0.22);
    top:30px;
    left:20px;
}

.art-glow-2{
    width:220px;
    height:220px;
    background:rgba(15,76,129,0.18);
    bottom:20px;
    right:10px;
}

@keyframes floatImage{
    0%{ transform:translateY(0); }
    50%{ transform:translateY(-10px); }
    100%{ transform:translateY(0); }
}

/* =========================
   SECTIONS
========================= */
.section{
    padding:80px 0;
}

.section-white{
    background:white;
}

.section-soft{
    background:#f4f8fb;
}

.section-header{
    text-align:center;
    max-width:700px;
    margin:auto;
    margin-bottom:40px;
}

.section-tag{
    display:inline-block;
    background:rgba(15,76,129,0.08);
    color:var(--primary);
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-bottom:14px;
}

.light-tag{
    background:rgba(255,255,255,0.14);
    color:white;
}

.section-header h2{
    font-size:38px;
    margin-bottom:10px;
    color:var(--primary-dark);
    line-height:1.1;
}

.section-header p{
    color:var(--muted);
    font-size:17px;
}

/* =========================
   FEATURE CARDS
========================= */
.cards-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.feature-card{
    background:white;
    padding:28px;
    border-radius:16px;
    box-shadow:var(--shadow-soft);
}

.feature-icon{
    width:44px;
    height:44px;
    background:linear-gradient(135deg,var(--accent),var(--primary));
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    margin-bottom:16px;
    font-weight:700;
    font-size:20px;
}

.feature-card h3{
    color:var(--primary-dark);
    margin-bottom:10px;
    font-size:22px;
}

.feature-card p{
    color:var(--muted);
}

/* =========================
   PRODUCTS
========================= */
.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.product-card{
    background:white;
    padding:24px;
    border-radius:16px;
    box-shadow:var(--shadow-soft);
    transition:0.2s;
}

.product-card:hover{
    transform:translateY(-4px);
}

.product-card h3{
    color:var(--primary-dark);
    margin-bottom:10px;
    font-size:21px;
}

.product-card p{
    color:var(--muted);
}

.product-card-pro{
    position:relative;
    overflow:hidden;
}

.product-icon{
    width:48px;
    height:48px;
    border-radius:12px;
    background:linear-gradient(135deg,var(--accent),var(--primary));
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:22px;
    margin-bottom:16px;
    box-shadow:var(--shadow-soft);
}

.product-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:16px;
    color:var(--primary);
    font-weight:700;
    font-size:15px;
}

.product-link:hover{
    color:var(--primary-dark);
}

/* =========================
   TWO COLUMN INTERNAL SECTION
========================= */
.two-column-info{
    display:grid;
    grid-template-columns:1.2fr 0.8fr;
    gap:28px;
    align-items:start;
}

.info-block h2{
    font-size:38px;
    line-height:1.1;
    color:var(--primary-dark);
    margin-bottom:14px;
}

.info-block p{
    color:var(--muted);
    font-size:17px;
    margin-bottom:14px;
}

.info-panel{
    background:white;
    border-radius:18px;
    padding:28px;
    box-shadow:var(--shadow-soft);
}

.info-panel h3{
    color:var(--primary-dark);
    margin-bottom:14px;
    font-size:24px;
}

/* =========================
   PAGE HERO
========================= */
.page-hero{
    padding:150px 0 80px;
    background:
        radial-gradient(circle at top left, rgba(26,163,111,0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(15,76,129,0.14), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(244,248,251,0.92) 100%);
}

.page-hero h1{
    font-size:48px;
    line-height:1.08;
    color:var(--primary-dark);
    margin-bottom:16px;
    max-width:850px;
}

.page-hero p{
    max-width:850px;
    font-size:18px;
    color:var(--muted);
}

/* =========================
   CONTACT BOX + FORM
========================= */
.contact-box{
    margin-top:24px;
    background:white;
    border:1px solid var(--border);
    border-radius:16px;
    padding:24px;
    box-shadow:var(--shadow-soft);
}

.form-contact{
    max-width:900px;
    margin:auto;
}

.contact-form{
    background:white;
    padding:30px;
    border-radius:18px;
    box-shadow:var(--shadow-soft);
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.form-group{
    margin-bottom:16px;
}

.form-group label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
    color:var(--primary-dark);
}

.form-group input,
.form-group textarea{
    width:100%;
    padding:14px 14px;
    border:1px solid var(--border);
    border-radius:10px;
    font-size:15px;
    outline:none;
    transition:0.2s ease;
    background:#fff;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(15,76,129,0.08);
}

.btn-whatsapp{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--whatsapp);
    color:white;
    padding:14px 22px;
    border-radius:10px;
    font-weight:700;
    box-shadow:0 10px 24px rgba(37,211,102,0.20);
    margin-top:10px;
}

/* =========================
   CTA
========================= */
.cta-section{
    background:linear-gradient(135deg,var(--primary-dark),var(--primary));
    color:white;
}

.cta-box{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:32px;
}

.cta-box h2{
    font-size:38px;
    line-height:1.1;
    margin-bottom:12px;
}

.cta-box p{
    max-width:720px;
    color:rgba(255,255,255,0.86);
}

.cta-actions{
    display:flex;
    gap:14px;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:flex-end;
}

.btn-light,
.btn-outline-light{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:170px;
    height:52px;
    padding:0 22px;
    border-radius:10px;
    font-weight:700;
    white-space:nowrap;
}

.btn-light{
    background:white;
    color:var(--primary-dark);
}

.btn-outline-light{
    border:1px solid rgba(255,255,255,0.5);
    background:transparent;
    color:white;
}

/* =========================
   FOOTER
========================= */
.site-footer{
    background:#0d2032;
    color:white;
    padding:50px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:30px;
}

.footer-grid h4{
    margin-bottom:12px;
}

.footer-grid p{
    color:rgba(255,255,255,0.80);
}

.footer-grid a{
    color:rgba(255,255,255,0.84);
    display:block;
    margin-top:8px;
}

.footer-copy{
    text-align:center;
    margin-top:20px;
    font-size:14px;
    border-top:1px solid rgba(255,255,255,0.10);
    padding-top:20px;
}

/* =========================
   FLOATING WHATSAPP
========================= */
.whatsapp-float{
    position:fixed;
    right:22px;
    bottom:22px;
    width:64px;
    height:64px;
    border-radius:50%;
    background:var(--whatsapp);
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    box-shadow:0 14px 30px rgba(37,211,102,0.30);
    z-index:1200;
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover{
    transform:translateY(-4px) scale(1.03);
    box-shadow:0 18px 34px rgba(37,211,102,0.38);
}

.whatsapp-icon{
    font-size:28px;
    font-weight:700;
    line-height:1;
}

/* =========================
   JUSTIFICACION DE TEXTOS
========================= */
.hero-description,
.page-hero p,
.section-header p,
.feature-card p,
.product-card p,
.info-block p,
.panel-soft-text,
.cta-box p,
.info-panel p,
.contact-box p{
    text-align:justify;
}

/* =========================
   RESPONSIVE TABLET
========================= */
@media(max-width:980px){

    .nav-wrapper{
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:14px;
    }

    .site-nav{
        justify-content:center;
        flex-wrap:wrap;
        gap:16px 20px;
    }

    .hero-grid{
        grid-template-columns:1fr;
    }

    .hero-mini-stats{
        grid-template-columns:1fr;
    }

    .showcase-body{
        grid-template-columns:1fr;
    }

    .cards-grid{
        grid-template-columns:1fr;
    }

    .product-grid{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .cta-box{
        flex-direction:column;
        align-items:flex-start;
    }

    .cta-actions{
        width:100%;
        justify-content:flex-start;
        flex-wrap:wrap;
    }

    .hero h1{
        font-size:40px;
    }

    .section-header h2,
    .cta-box h2,
    .info-block h2{
        font-size:30px;
    }

    .showcase-art{
        min-height:260px;
    }

    .hero-medical-image{
        max-height:260px;
    }

    .page-hero{
        padding:190px 0 70px;
    }

    .two-column-info{
        grid-template-columns:1fr;
    }

    .page-hero h1{
        font-size:38px;
    }
}

/* =========================
   CONTACTO
========================= */

.contact-section{
    padding-top:160px;
    padding-bottom:80px;
}

.contact-header{
    text-align:center;
    max-width:700px;
    margin:auto;
    margin-bottom:40px;
}

.contact-header h1{
    font-size:42px;
    color:var(--primary-dark);
    margin-bottom:12px;
}

.contact-header p{
    color:var(--muted);
    font-size:17px;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contact-form-container{
    background:white;
    padding:30px;
    border-radius:16px;
    box-shadow:var(--shadow-soft);
}

.contact-info{
    background:white;
    padding:30px;
    border-radius:16px;
    box-shadow:var(--shadow-soft);
}

.info-item{
    margin-bottom:20px;
}

.info-item strong{
    color:var(--primary-dark);
    display:block;
    margin-bottom:4px;
}

.flash-messages{
    margin-bottom:20px;
}

.alert{
    padding:14px;
    border-radius:10px;
    margin-bottom:10px;
}

.alert.success{
    background:#e6f7ef;
    color:#157347;
}

.alert.error{
    background:#fdeaea;
    color:#842029;
}






/* =========================
   RESPONSIVE MOBILE
========================= */
@media(max-width:640px){

    .site-header{
        padding:0;
    }

    .nav-wrapper{
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:10px;
        padding:12px 0 14px;
    }

    .logo{
        height:46px;
    }

    .site-nav{
        width:100%;
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;
        gap:12px 18px;
    }

    .site-nav a{
        font-size:15px;
        line-height:1.2;
    }

    .btn-nav{
        padding:10px 18px;
        min-width:120px;
        text-align:center;
    }

    .hero{
        padding:220px 0 60px;
    }

    .page-hero{
        padding:220px 0 60px;
    }

    .hero h1{
        font-size:32px;
    }

    .page-hero h1{
        font-size:30px;
    }

    .hero-description,
    .page-hero p,
    .section-header p,
    .info-block p{
        font-size:16px;
    }

    .btn-light,
    .btn-outline-light,
    .btn-primary,
    .btn-secondary{
        width:100%;
        min-width:unset;
    }

    .hero-actions,
    .cta-actions{
        flex-direction:column;
        width:100%;
    }

    .form-row{
        grid-template-columns:1fr;
    }

    .contact-form{
        padding:22px;
    }

    .whatsapp-float{
        position:fixed;
        width:60px;
        height:60px;
        bottom:25px;
        right:25px;
        background:#25D366;
        border-radius:50%;
        display:flex;
        align-items:center;
        justify-content:center;
        box-shadow:0 6px 20px rgba(0,0,0,.25);
        z-index:999;
    }

    .whatsapp-float img{
        width:30px;
        height:30px;
    }


}

@media(max-width:640px){

.contact-section{
    padding-top:220px;
}

.contact-grid{
    grid-template-columns:1fr;
}

}
