/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header moderno y limpio */
header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    top: 0;
    background: linear-gradient(90deg, #f1ddca 60%, #f76825 100%);
    color: #222;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.3s, box-shadow 0.3s;
}

header img {
    max-width: 150px;
}

header nav {
    display: flex;
}

nav {
    padding: 10px;
    position: relative;
    z-index: 10;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.2s;
}

header nav a:hover {
    color: #ecf0f1;
}

/* Botón hamburguesa */
.hamburger {
    font-size: 24px;
    cursor: pointer;
    border: none;
    background: none;
    color: #1a237e !important;
    transition: color 0.2s;
    z-index: 15;
    position: relative;
}
.hamburger.active {
    color: #f76825 !important;
}

/* Menú hamburguesa */
.menu {
    list-style: none;
    margin: auto;
    padding: 0;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.menu.active {
    display: flex;
}
.menu li {
    padding: 10px 15px;
}
.menu li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.2s;
}
.menu li a:hover {
    color: #f76825;
}

/* Botón destacado */
.header-btn {
    display: inline-block;
    background: #f76825;
    color: #fff;
    border-radius: 20px;
    padding: 10px 22px;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 8px rgba(247,104,37,0.08);
    margin: 5px 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.header-btn:hover {
    background: #f39315;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

/* Secciones */
section {
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Títulos */
.titulazo, h2 {
    font-size: 45px;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Times New Roman', Times, serif;
    color: #000;
    -webkit-text-stroke: 0.9px #000;
    font-weight: bold;
}

.page-description {
    font-size: 1.15em;
    color: #444;
    text-align: center;
    margin: 18px 0 28px 0;
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* Galería imágenes */
figure {
    display: inline-block;
    margin: 10px;
    text-align: center;
}

figure img {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}
figure img:hover {
    transform: scale(1.07);
    box-shadow: 0 12px 40px rgba(0,0,0,0.20);
}

/* Caja y caja-grande */
.caja {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    justify-content: center;

    width: fit-content;  /* ajusta el ancho al contenido */
    max-width: 100%;     /* para no exceder el contenedor padre */
    margin: 0 auto;      /* centra horizontalmente */
}

.caja p {
    text-align: center;
    font-size: 1.1em;
    color: #000000;
    margin-top: 10px;
}

.caja img {
    max-width: 400px;
    max-height: 400px;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    align-items: center;
}
.caja img:hover {
    transform: scale(1.07);
    box-shadow: 0 12px 40px rgba(0,0,0,0.20);
}

.caja-grande {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: center;
}
.caja-grande img {
    max-width: 500px;
    max-height: 500px;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.caja-grande img:hover {
    transform: scale(1.07);
    box-shadow: 0 12px 40px rgba(0,0,0,0.20);
}
.caja-grande .articulo {
    padding: 40px 50px;  /* mucho espacio interno */
    padding-top: 50px;
    padding-bottom: 50px;
    box-sizing: border-box; /* importante para que padding no haga overflow */
    max-width: 90vw;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.articulo {
    padding-top: 50px;
    padding-bottom: 50px;
}

.caja-grande .articulo img {
    margin: 0 20px; /* margen horizontal */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.caja-grande .articulo figure {
    margin: 20px 0;
}

@media (max-width: 768px) {
    .caja-grande .articulo {
        max-width: 100%;
        padding: 10px;
        font-size: 16px;
    }
}

/* Video estilos */
.video {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}
.video video,
.video iframe {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    display: block;
    margin: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: box-shadow 0.2s;
}
.video video:hover,
.video iframe:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.video-solo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}
.video-solo video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    display: block;
    margin: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: box-shadow 0.2s;
}


/* Enlaces */
a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
a:hover {
    color: #f76825;
}

/* Footer moderno */
footer {
    background: linear-gradient(90deg, #f1ddca 60%, #f76825 100%);
    color: #222;
    text-align: center;
    padding: 18px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 15px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    transition: background 0.3s, box-shadow 0.3s;
}
footer p {
    font-size: 14px;
}

/* contacto */

#contact {
    background-color: #faf9f6; /* tono muy suave y claro */
    border: 1.5px solid #f1ddca; /* borde delicado */
    border-radius: 16px;
    padding: 30px 25px;
    max-width: 600px;
    margin: 40px auto 60px auto; /* centrado con margen arriba y abajo */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: #444;
    font-family: 'Arial', sans-serif;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

#contact:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

#contact h2 {
    font-family: 'Times New Roman', serif;
    font-size: 36px;
    color: #000000;
    margin-bottom: 20px;
    -webkit-text-stroke: 0.6px #000;
}

#contact p {
    font-size: 18px;
    margin: 12px 0;
    font-weight: 500;
    letter-spacing: 0.4px;
}


/* Main y sección */
main {
    margin-top: 150px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    text-align: center;
    background: transparent;
}
section {
    margin: 0 0 40px 0;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .video {
        grid-template-columns: 1fr;
    }
    .caja-grande {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .caja-grande img {
        max-width: 100%;
        height: auto;
    }
    figure {
        width: 100%;
        margin: 10px 0;
    }
    header img {
        max-width: 120px;
    }
    header nav {
        display: block;
        margin-top: 10px;
    }
    header nav a {
        display: block;
        margin: 5px 0;
    }
    footer {
        position: relative;
        margin-top: 20px;
    }
}
@media (max-width: 600px) {
    header img {
        max-width: 90px;
    }
    main {
        margin-top: 90px;
        padding: 2px;
    }
}
/* ================== VISTA CELULAR ================== */
@media screen and (max-width: 480px) {
    /* Header */
    header {
        padding: 8px 12px;
        flex-direction: row;
        justify-content: space-between;
    }
    header img {
        max-width: 100px;
    }
    .header-btn {
        padding: 8px 14px;
        font-size: 14px;
    }

    /* Menú hamburguesa */
    .menu li {
        padding: 15px 0;
    }
    .menu li a {
        font-size: 20px;
    }

    /* Texto de bienvenida */
    #inicio {
        font-size: 18px;
        margin-top: 120px;
    }
    span {
        font-size: 14px;
    }
    .bienvenida {
        font-size: 16px;
        margin: 30px 10px;
    }

    /* Secciones */
    section, #galeria, #exposiciones, #contacto {
        margin: 20px 0;
        padding: 20px 15px;
    }

    /* Galería y figuras */
    figure img {
        width: 100%;
        height: auto;
    }

    .caja, .caja-grande {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .caja img, .caja-grande img {
        max-width: 100%;
        height: auto;
    }

    /* Videos */
    .video {
        flex-direction: column;
        gap: 15px;
    }
    .video video {
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
    }

    /* Títulos */
    .titulazo, h2 {
        font-size: 1.6em;
        padding: 10px;
        margin: 15px 0;
    }

    /* Footer */
    footer {
        font-size: 12px;
        padding: 12px 5px;
        position: relative;
    }
}
/* ================== OPCIÓN 2: Header con botones reducidos al lado del logo ================== */
/* Botones al lado del logo, pero permiten varias filas */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start; /* permite que el logo quede arriba si el nav ocupa más */
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    header img {
        max-width: 110px;
        margin-bottom: 6px;
    }

    nav {
        display: flex;
        flex-wrap: wrap; /* permite que los botones bajen a segunda fila */
        justify-content: flex-end;
        gap: 6px;
        flex: 1; /* ocupa todo el ancho que pueda */
    }

    .header-btn {
        font-size: 13px;
        padding: 6px 12px;
        margin: 4px 2px;
        flex-shrink: 0; /* que no se achiquen más de la cuenta */
    }
}

/* Extra ajuste para pantallas muy chicas (celulares <480px) */
@media (max-width: 480px) {
    header {
        flex-direction: column; /* logo arriba, botones debajo */
        align-items: center;
    }

    nav {
        justify-content: center;
    }

    .header-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}
/* ===== Botón hamburguesa fijo a la derecha en mobile ===== */
@media (max-width: 768px) {
    .hamburger {
        position: absolute;   /* se "desacopla" del flujo */
        right: 15px;          /* pegado al borde derecho */
        top: 50%;             /* centrado verticalmente */
        transform: translateY(-50%); /* lo baja para que quede alineado */
        font-size: 26px;      /* un poquito más grande en mobile */
        z-index: 2000;        /* por encima de todo */
    }

    header {
        position: relative; /* el absolute del botón toma como referencia el header */
    }
}

/* Para pantallas muy chicas */
@media (max-width: 480px) {
    .hamburger {
        right: 10px;   /* más cerca del borde */
        font-size: 24px;
    }
}
