
body {
   font-family: Arial, sans-serif;
    margin: 0;

    background-image: url('../img\ fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5); /* oscurece */
    z-index: -1;
}

section {
    background: rgba(255, 255, 255, 0.9);
    margin: 20px;
    border-radius: 12px;
}




header  {
    background: rgba(27, 94, 32, 0.9);
    backdrop-filter: blur(5px) ;
}





/* HEADER */
header {
    background-color: #1b5e20;
    color: white;
    padding: 20px;
    text-align: center;
}

/* NAV */
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* SECCIONES */
section {
    padding: 60px 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    letter-spacing: 1px;
}

section p {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
    line-height: 1.6;
}

/* HERO */
.hero img {
    width: 80%;
    max-width: 700px;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
}

/* CARDS */
.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 25px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card p {
    font-size: 14px;
}

/* ===================== */
/* 🔥 DATOS Y ANALISIS */
/* ===================== */

.contenedor-datos {
    max-width: 1100px;
    margin: auto;
}

/* cada fila */
.fila-dato {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
}

/* texto izquierda */
.texto-dato {
    width: 50%;
}

.texto-dato h3 {
    color: #1b5e20;
}

/* lado derecho */
.lado-dato {
    width: 50%;
    text-align: center;
}

/* caja del gráfico */
.grafico-dato {
    width: 100%;
    max-width: 350px;
    height: 220px;
    margin: auto;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

/* canvas */
.grafico-dato canvas {
    width: 100% !important;
    height: 100% !important;
}

/* botón */
.boton-dato {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #1b5e20;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

/* ===================== */
/* 🔥 FORMULARIO */
/* ===================== */

#formEncuesta {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.pregunta {
    margin-bottom: 20px;
    text-align: left;
}

.pregunta p {
    font-weight: bold;
}

button {
    background: #1b5e20;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

#mensaje {
    text-align: center;
    margin-top: 15px;
}

/* ===================== */
/* 🔥 COMPARADOR */
/* ===================== */

.comparador {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
}

.img-fondo {
    width: 100%;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid white;
}

.img-frente {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* slider */
#slider {
    width: 80%;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    accent-color: #1b5e20;
}

/* FOOTER */
footer {
    background-color: #1b5e20;
    color: white;
    text-align: center;
    padding: 20px;
}


/* TARJETAS DE ORGANIZACIONES */
.org-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* IMÁGENES */
.org-card img {
    width: 80px;              /* 🔥 tamaño pequeño */
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
}

/* EFECTO HOVER */
.org-card:hover {
    transform: translateY(-8px); /* se eleva */
    box-shadow: 0px 8px 20px rgba(0,0,0,0.2);
}

/* TITULOS */
.org-card h3 {
    color: #1b5e20;
    margin-bottom: 10px;
}

/* BOTÓN */
.org-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #1b5e20;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.org-card a:hover {
    background: #2e7d32;
}

.org-card img {
    background: #f1f8e9;
    padding: 10px;
}
    
