/*public/style.css*/
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAF7;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding-top: 76px; /* Para que el contenido no quede debajo del header fijo */
    box-sizing: border-box;
    color: #2F4F4F;
}

/* --- ESTILOS DE HEADER Y NAV --- */

.fondo-claro {
    background-color: #FFFFFF !important;
}

.texto-logo {
    color: #008080;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex; 
    align-items: center;
}

.logo-nav {
    height: 40px; 
    width: auto; 
    margin-right: 8px; 
    vertical-align: middle;
}

.boton-nav {
    color: #2F4F4F;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.boton-nav:hover {
    background-color: #E0F2F1;
    color: #008080;
}

.boton-nav.activo {
    background-color: #008080;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 128, 128, 0.3);
}

.boton-ingreso {
    background-color: transparent;
    border: 1px solid #008080;
    color: #008080;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.boton-ingreso:hover {
    background-color: #E0F2F1;
    box-shadow: 0 2px 10px rgba(0, 128, 128, 0.2);
}


/* --- CONTENIDO GENERAL Y ESTRUCTURA --- */

.contenido-principal {
    max-width: 1200px;
    width: 100%;
    flex-grow: 1;
    padding-top: 30px;
    padding-bottom: 30px;
}

.caja-principal {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Control de Visibilidad de Secciones */
.seccion-pagina {
    display: none;
}

.seccion-pagina.activo {
    display: block;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #005656;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #006666;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #008080;
}

.texto-cuerpo {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333333 !important;
}


/* --- SECCIÓN HERO --- */

.seccion-hero {
    background-image: linear-gradient(to right, #008080, #00B2B2);
    color: #FFFFFF;
    padding: 80px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.boton-primario {
    background-color: #008080;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.boton-primario:hover {
    background-color: #006666;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 128, 128, 0.3);
}


/* --- TARJETAS DE SOLUCIÓN --- */

.fondo-tarjeta {
    background-color: #F0FDF4;
}

.efecto-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.efecto-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.icono-escaner-planta, .icono-recomendaciones, .icono-subir {
    font-size: 3.5rem;
    display: block;
    margin: 0 auto 15px auto;
}


/* --- FORMULARIOS Y ESCANER --- */

.area-subida {
    background-color: #F5FBFB;
    border: 2px dashed #B2DFDB;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: #668C8C;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.area-subida:hover {
    background-color: #E0F2F1;
    border-color: #008080;
}

.area-subida input[type="file"] {
    display: none;
}

/* Clase para cuando se arrastra un archivo encima */
.area-subida.drag-active {
    background-color: #d1fae5 !important; /* Verde muy suave */
    border-color: #059669 !important; /* Verde borde */
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.estilo-formulario {
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #D1D5DB;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.estilo-formulario:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.2);
}

.caja-recomendaciones {
    background-color: #F0FDF4;
    border: 1px solid #B2DFDB;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    text-align: left;
    min-height: 150px;
    overflow-y: auto;
    max-height: 400px;
    line-height: 1.6;
}


/* --- FOOTER Y COLORES ESPECÍFICOS --- */

.fondo-pie-pagina {
    background-color: #006666;
}

.color-titulo-pie {
    color: #E0F2F1;
}

.color-texto-pie {
    color: #B2DFDB;
}

.enlace-pie-hover:hover {
    color: #FFFFFF !important;
}

.color-texto-primario { color: #008080 !important; }
.titulo-seccion { color: #006666 !important; }
.titulo-tarjeta { color: #008080 !important; }

/* --- MEDIA QUERIES --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #FFFFFF;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .boton-nav {
        width: 100%;
        text-align: left;
    }
    .contenido-principal {
        padding-top: 20px;
    }
}

/* --- SOSUPLANT SIGNATURE UI --- */
:root {
    --sp-ink: #102a2b;
    --sp-muted: #607778;
    --sp-leaf: #0f766e;
    --sp-mint: #45d6a5;
    --sp-line: rgba(15, 118, 110, .16);
    --sp-glass: rgba(255, 255, 255, .72);
    --sp-shadow: 0 24px 70px rgba(16, 42, 43, .12);
}

html { scroll-behavior: smooth; }
body {
    color: var(--sp-ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(69, 214, 165, .16), transparent 28rem),
        radial-gradient(circle at 92% 22%, rgba(60, 130, 246, .11), transparent 26rem),
        linear-gradient(135deg, #f7fbf8 0%, #edf7f3 48%, #f8fafc 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(15,118,110,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,118,110,.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
    z-index: -1;
}
.fijo-arriba {
    background: rgba(255,255,255,.76) !important;
    border-bottom: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 8px 28px rgba(16,42,43,.08) !important;
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.texto-logo { color: var(--sp-leaf); letter-spacing: -.04em; }
.logo-nav { filter: drop-shadow(0 5px 10px rgba(15,118,110,.2)); transition: transform .35s ease; }
.texto-logo:hover .logo-nav { transform: rotate(-6deg) scale(1.08); }
.boton-nav { color: var(--sp-muted); position: relative; }
.boton-nav::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px; background: linear-gradient(90deg,var(--sp-mint),var(--sp-leaf)); transform: scaleX(0); transform-origin: center; transition: transform .28s ease; border-radius: 99px; }
.boton-nav:hover::after, .boton-nav.activo::after { transform: scaleX(1); }
.boton-nav.activo { background: rgba(15,118,110,.1); color: var(--sp-leaf); box-shadow: none; }
.boton-ingreso, .boton-primario { position: relative; overflow: hidden; isolation: isolate; }
.boton-ingreso::before, .boton-primario::before, .boton-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.46) 48%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; z-index: -1; }
.boton-ingreso:hover::before, .boton-primario:hover::before, .boton-hero:hover::before { transform: translateX(120%); }
.contenido-principal { padding-top: 50px; padding-bottom: 70px; }
.caja-principal {
    background: var(--sp-glass);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: var(--sp-shadow);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}
.seccion-hero {
    text-align: left;
    background: linear-gradient(125deg, rgba(8,66,63,.98), rgba(15,118,110,.94) 52%, rgba(16,185,129,.86));
    box-shadow: 0 28px 60px rgba(8,66,63,.28);
    isolation: isolate;
    animation: hero-rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.seccion-hero::before, .seccion-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
.seccion-hero::before { width: 28rem; height: 28rem; right: -10rem; top: -14rem; background: radial-gradient(circle, rgba(148,255,220,.33), transparent 68%); animation: float-orb 9s ease-in-out infinite; }
.seccion-hero::after { width: 18rem; height: 18rem; left: -9rem; bottom: -12rem; background: radial-gradient(circle, rgba(83,176,255,.22), transparent 68%); animation: float-orb 12s ease-in-out -2s infinite reverse; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .75rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.seccion-hero h1 { max-width: 760px; color: #fff; letter-spacing: -.055em; line-height: 1.04; margin-top: 1.15rem; }
.seccion-hero > p { max-width: 670px; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.boton-hero { color: var(--sp-leaf) !important; border: 0; box-shadow: 0 12px 28px rgba(3,43,41,.25); transition: transform .28s ease, box-shadow .28s ease; }
.boton-hero:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(3,43,41,.32); }
.hero-note { color: rgba(255,255,255,.78); font-size: .82rem; display: inline-flex; gap: .4rem; align-items: center; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 720px; margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero-metrics span { display: flex; flex-direction: column; gap: .2rem; }
.hero-metrics strong { font-size: .9rem; color: #fff; }
.hero-metrics small { font-size: .72rem; color: rgba(255,255,255,.65); }
.card { background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.88) !important; box-shadow: 0 14px 36px rgba(16,42,43,.08) !important; backdrop-filter: blur(14px); }
.efecto-hover { transition: transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .38s ease; }
.efecto-hover:hover { transform: translateY(-9px) rotateX(1deg); box-shadow: 0 24px 48px rgba(16,42,43,.16) !important; }
.efecto-hover img { transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .7s ease; }
.efecto-hover:hover img { transform: scale(1.06); filter: saturate(1.12) contrast(1.04); }
.fondo-tarjeta { background: linear-gradient(145deg, rgba(240,253,244,.9), rgba(255,255,255,.68)); }
.area-subida { background: rgba(255,255,255,.52); border: 1.5px dashed rgba(15,118,110,.36); box-shadow: inset 0 0 0 1px rgba(255,255,255,.64); transition: border-color .28s ease, background .28s ease, transform .28s ease, box-shadow .28s ease; }
.area-subida:hover, .area-subida.drag-active { background: rgba(212,250,236,.7) !important; border-color: var(--sp-leaf) !important; box-shadow: 0 18px 42px rgba(15,118,110,.13); transform: translateY(-3px); }
.icono-subir { color: var(--sp-leaf); filter: drop-shadow(0 7px 12px rgba(15,118,110,.2)); animation: breathe 3s ease-in-out infinite; }
.estilo-formulario { background: rgba(255,255,255,.7); border: 1px solid rgba(15,118,110,.16); }
.estilo-formulario:focus { border-color: var(--sp-leaf); box-shadow: 0 0 0 4px rgba(69,214,165,.2), 0 10px 22px rgba(15,118,110,.08); }
.caja-recomendaciones { background: rgba(240,253,244,.66); border-color: rgba(15,118,110,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.fondo-pie-pagina { background: linear-gradient(145deg, #082f2f, #0f5b56); }

@keyframes hero-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes float-orb { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-18px,16px,0) scale(1.08); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (max-width: 640px) { .caja-principal { padding: 1.2rem !important; } .seccion-hero { padding: 2.1rem 1.25rem !important; } .seccion-hero h1 { font-size: 2.35rem; } .hero-metrics { grid-template-columns: 1fr; gap: .7rem; } .hero-metrics span { padding-left: .75rem; border-left: 2px solid rgba(255,255,255,.28); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }

