/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================
   BASE
========================= */
body{
    font-family:Arial, sans-serif;
    background:#F4F1EA;
    color:#3A3A3A;
    line-height:1.6;
    padding-top:80px; /* Compensación header fixed */
}

h2{
    font-size:2rem;
    font-weight:700;
    text-align:center;
    margin-bottom:40px;
    letter-spacing:1px;
    position:relative;
}

/* =========================
   UTILIDADES
========================= */
.container{
    max-width:1100px;
    margin:auto;
    padding:40px 20px;
}

.text-center{
    text-align:center;
}

/* =========================
   ACCESIBILIDAD - FOCUS
========================= */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #C9A74D;
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* =========================
   HEADER / NAV
========================= */
header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    background:#5C8D7C;
    z-index:1000;
    display:flex;
    align-items:center;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    padding:0 20px;
}

.logo{
    color:white;
    font-weight:bold;
}

.menu{
    list-style:none;
    display:flex;
    align-items:center;
    gap:20px;
}

.menu a{
    color:white;
    text-decoration:none;
    transition:opacity 0.3s ease;
}

.menu a:hover{
    opacity:0.8;
}

/* =========================
   HERO
========================= */
.hero{
    height:90vh;
    background:url("images/hero.webp") center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-overlay{
    background:rgba(0,0,0,0.6);
    padding:40px;
    text-align:center;
    color:white;
}

.hero h1{
    font-size:2.5rem;
    margin-bottom:0;
}

.btn-cta{
    display:inline-block;
    margin-top:25px;
    padding:14px 32px;
    background:transparent;
    color:#fff;
    border:2px solid #fff;
    text-decoration:none;
    font-weight:bold;
    letter-spacing:1px;
    transition:all 0.3s ease;
}

.btn-cta:hover{
    background:#fff;
    color:#5C8D7C;
}

/* =========================
   GALERÍA
========================= */
.galeria{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:25px;
}

.galeria figure{
    width:260px;
    overflow:hidden;
    border-radius:6px;
    background:white;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria figure:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.galeria img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
}

/* =========================
   TABLA
========================= */
.tabla-wrapper{
    overflow-x:auto;
}

table{
    width:100%;
    background:white;
    border-collapse:collapse;
}

thead{
    background:#5C8D7C;
    color:white;
}

th, td{
    padding:15px;
    text-align:center;
    border-bottom:1px solid #eee;
}

/* =========================
   FORMULARIO
========================= */
.formulario{
    padding-top:120px;
}

.formulario form{
    display:flex;
    flex-direction:column;
    gap:30px;
    max-width:700px;
    margin:auto;
}

fieldset{
    border:1px solid #e5e5e5;
    padding:35px;
    border-radius:8px;
    background:#fff;
    display:flex;
    flex-direction:column;
    gap:18px;
}

legend{
    padding:0 12px;
    font-weight:bold;
    font-size:0.9rem;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#111;
}

label{
    font-size:0.9rem;
    font-weight:600;
    margin-bottom:4px;
}

input,
textarea,
select{
    width:100%;
    padding:12px 14px;
    border:1px solid #bbb; /* más contraste */
    background:#ffffff; /* más limpio */
    border-radius:4px;
    font-size:0.95rem;
    transition:all 0.2s ease;
}

textarea{
    min-height:130px;
    resize:vertical;
}

input:hover,
textarea:hover,
select:hover{
    border-color:#bbb;
}

input:focus,
textarea:focus,
select:focus{
    outline:none;
    border-color:#5C8D7C;
    box-shadow:0 0 0 2px rgba(92,141,124,0.2);
    background:#fff;
}

.checkbox{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-top:10px;
    font-size:0.9rem;
}

.checkbox input{
    width:18px;
    height:18px;
    cursor:pointer;
}

.checkbox label{
    margin:0;
    font-weight:500;
    cursor:pointer;
}

button{
    padding:14px;
    background:#5C8D7C;
    color:white;
    border:none;
    font-weight:600;
    letter-spacing:1px;
    cursor:pointer;
    transition:background 0.3s ease;
}

button:hover{
    background:#4A7466;
}

/* =========================
   FOOTER
========================= */
footer{
    background:#4A7466;
    color:white;
    padding:30px 0;
}

.footer-content{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

footer a{
    color:white;
    text-decoration:none;
    margin-left:15px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:768px){

    header{
        height:auto;
        padding:15px 0;
    }

    body{
        padding-top:120px; /* ajusta según lo que ocupe */
    }

    .nav{
        flex-direction:column;
        gap:15px;
    }

    .menu{
        flex-direction:column;
        align-items:center;
    }

    .hero h1{
        font-size:1.8rem;
    }

    .galeria figure{
        width:45%;
    }

    .footer-content{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }
}

@media (max-width:480px){

    .galeria figure{
        width:100%;
    }
}
