/* General body styles */
body.claro {
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    padding: 0;
    /*background-color: #f5f1ec;*/
    color: #3d3d3d;

    /* Fondo de pantalla completa responsivo */
    background: url('../img/fondo.webp') center center no-repeat !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important; /* Opcional: mantiene el fondo fijo al hacer scroll */
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 1em;
    justify-content: space-between;
}

/* Logo */
.logo {
    height: 70px;
    border-radius: 12px;
}

/* Bienvenida */
.bienvenida {
    padding: 3em 1em;
    text-align: center;
    /*background-color: #f9f7f3;*/
}

/* Navegación */
nav {
    display: flex;
    align-items: center;
}

/* Menú principal */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.menu a {
    color: #b89b5e;
    margin: 0 1em;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: transparent;
    min-width: 160px;
    box-shadow: none;
    z-index: 1;
    flex-direction: column;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: flex;
}

.dropdown-content a {
    display: block;
    padding: 1em;
    text-align: left;
    color: #b89b5e;
    text-decoration: none;
    font-size: 1.2em;
    background-color: transparent;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menú hamburguesa para móviles */
.hamburger {
    display: none;
}

/* Estilos móviles */
@media (max-width: 768px) {
    .menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    input[type="checkbox"]:checked + .hamburger + .menu {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 2em;
        color: #b89b5e;
    }

    .menu a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #ddd;
        width: 100%;
        font-size: 1.5em;
        color: white;
    }

    .dropdown-content {
        position: static;
        display: block;
        width: 100%;
        text-align: left;
        box-shadow: none;
        background-color: transparent;
    }

    .dropdown-content a {
        padding-left: 2rem;
        font-size: 1.2em;
        color: white;
        border-bottom: 1px solid #ddd;
    }

    .dropdown-content a:hover {
        background-color: #b89b5e;
    }
}

/* Estilos en pantallas grandes */
@media (min-width: 900px) {
    .menu {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }

    .menu a {
        margin: 0 1em;
        font-size: 1.2em;
    }

    .hamburger {
        display: none;
    }
}

/* Grid general */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Tarjetas */
.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Títulos y párrafos */
.card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.card p {
    font-size: 1rem;
    color: #555;
}

/* Responsive adicional */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: 120px;
    }

    nav {
        width: 100%;
        text-align: center;
    }

    nav a {
        font-size: 1em;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 15px;
    }
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Texto resaltado */
.resaltado {
    color: black;
    font-weight: bold;
}

body,
body.claro h1,
body.claro h2,
body.claro h3,
body.claro h4,
body.claro h5,
body.claro h6,
body.claro p,
body.claro div,
body.claro span,
body.claro li,
body.claro a,
body.claro strong,
body.claro em,
body.claro b,
body.claro i,
body.claro th,
body.claro td {
    color: #b89b5e !important;
}
