/*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;
    }
}

