
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── HEADER ── */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.4rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #E17055;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 120px;
    width: auto;
    display: block;
}






nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    flex-shrink: 0;
}

nav a {
    color: #2B4C7E;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #E17055;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: #E17055;
    background: rgba(225, 112, 85, 0.1);
    transform: translateY(-2px);
}

nav a:hover::after { width: 80%; }

nav a.active {
    background: linear-gradient(135deg, #E17055 0%, #d65a3f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

** Para pantallas medianas (Tablets) */
@media (max-width: 1024px) {
    nav {
        gap: 1rem;
        padding: 0 1rem;
    }
    nav ul {
        gap: 1rem;
    }
    nav a {
        font-size: 1.1rem;
        padding: 0.5rem 0.8rem;
    }
    .logo-img {
        height: 90px; /* Reducimos un poco el logo */
    }
}

/* Para pantallas pequeñas (Móviles) */
@media (max-width: 768px) {
    header {
        padding: 0.2rem 0; /* Menos espacio arriba/abajo */
    }

    nav {
        flex-direction: column; /* El logo arriba y el menú abajo */
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .logo-img {
        height: 70px; /* Logo más discreto en móvil */
    }

    nav ul {
        gap: 0.3rem;
        flex-wrap: wrap; /* Si no caben en una línea, saltan a la siguiente */
        justify-content: center;
        padding: 0;
    }

    nav a {
        font-size: 0.9rem; /* Fuente más pequeña para que quepan todos */
        padding: 0.4rem 0.6rem;
        font-weight: 500;
    }

    /* Ajuste para el botón activo en móvil */
    nav a.active {
        padding: 0.4rem 0.8rem;
    }
}

/* Ajuste extra para móviles muy estrechos (iPhone SE, etc) */
@media (max-width: 380px) {
    nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    nav ul {
        gap: 0.2rem;
    }
}

/* ── HERO ── */
.page-header {
    background: #2B4C7E;
    color: #fff;
    padding: 12rem 2rem 6rem;
    text-align: center;
    animation: fadeInDown 1.2s ease-out;
}
.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
}
.page-header p {
    font-size: 1.3rem;
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── INTRO ── */
.intro-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    text-align: center;
}
.intro-section h2 { font-size: 2rem; color: #2B4C7E; margin-bottom: 1rem; }
.intro-section p  { color: #555; font-size: 1.05rem; }

/* ── FILTROS ── */
.filter-section {
    padding: 2.5rem 2rem 3rem;
    background: #f4f6f8;
    text-align: center;
}
.filter-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}
.filter-btn {
    padding: 0.7rem 1.6rem;
    background: #fff;
    border: 2px solid #2B4C7E;
    color: #2B4C7E;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.filter-btn:hover {
    background: rgba(225,112,85,0.08);
    border-color: #E17055;
    color: #E17055;
}
.filter-btn.active {
    background: #E17055;
    color: #fff;
    border-color: #E17055;
    box-shadow: 0 4px 14px rgba(225,112,85,0.35);
}

/* ── GALERÍA ── */
.gallery-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.carousel-block { transition: opacity .4s ease; }
.carousel-block--hidden { display: none; }

.carousel-block__title {
    font-size: 1.6rem;
    color: #2B4C7E;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #E17055;
}

/* ── CARRUSEL ── */
.carousel {
    position: relative;
    width: 100%;
    /* Relación 4:3 → más cuadrado que el 16:9 anterior */
    aspect-ratio: 4 / 3;
    max-height: 600px;
    overflow: hidden;
    border-radius: 14px;
    background: #ddd;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.carousel__track {
    display: flex;
    height: 100%;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.carousel__slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: zoom-in;
    transition: filter .25s;
}

.carousel__slide:hover { filter: brightness(0.88); }

/* flechas */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #2B4C7E;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background .25s, color .25s, box-shadow .25s;
}
.carousel__btn:hover {
    background: #E17055;
    color: #fff;
    box-shadow: 0 4px 16px rgba(225,112,85,0.4);
}
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }

/* dots */
.carousel__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80%;
}
.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background .3s, transform .3s;
    flex-shrink: 0;
}
.carousel__dot:hover     { background: rgba(255,255,255,0.75); }
.carousel__dot--active   { background: #E17055; transform: scale(1.35); }

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}
.lightbox--visible {
    display: flex;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    user-select: none;
}

.lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lightbox__close:hover { background: #E17055; }

.lightbox__btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.lightbox__btn:hover { background: #E17055; }

/* ── CTA ── */
.cta-section {
    background: #2B4C7E;
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
}
.cta-section h2    { font-size: 2.5rem; margin-bottom: .8rem; }
.cta-section > p   { opacity: .85; margin-bottom: 2rem; font-size: 1.25rem; }

.btn-primary {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: #E17055;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(225,112,85,0.35);
    transition: background .3s, transform .25s, box-shadow .3s;
}
.btn-primary:hover {
    background: #d65a3f;
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(225,112,85,0.5);
}

/* ── FOOTER ── */
footer {
    background: #2B4C7E;
    color: white;
    padding: 3rem;
    border-top: 4px solid #E17055;
    font-family: 'Arial', sans-serif;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.footer-section h4 {
    color: #E17055;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: #E8F4F8;
    line-height: 1.7;
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .page-header    { padding: 12rem 2rem 6rem; }
    .page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
}

    .carousel       { aspect-ratio: 4 / 3; max-height: 320px; }
    .carousel__btn  { width: 36px; height: 36px; font-size: .9rem; }

    .lightbox__btn  { width: 40px; height: 40px; font-size: 1.2rem; }

    .footer-content { grid-template-columns: 1fr; }
    nav ul          { display: none; }
}

@media (max-width: 480px) {
    .filter-btn            { padding: .55rem 1.1rem; font-size: .82rem; }
    .carousel-block__title { font-size: 1.3rem; }
    .carousel              { aspect-ratio: 1 / 1; max-height: 280px; }
}