﻿:root {
    --espresso: #3b2515;
    --espresso-dark: #201208;
    --cream: #fdf7ef;
    --latte: #f1dfcf;
    --accent: #d39b59;
    --ink: #2b1a12;
    --nav-offset: 120px;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Effra', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    /* Offset for fixed navigation bar. Adjust this value if nav height changes. */
    padding-top: var(--nav-offset);
}

main {
    padding: 0 clamp(1.5rem, 6vw, 8rem) 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-family: 'Abhaya', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.25;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 0.75rem clamp(1.25rem, 6vw, 5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 160px;
}

.brand-title {
    font-family: 'Abhaya', serif;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.brand-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(32, 18, 8, 0.7);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem clamp(0.5rem, 2vw, 1.5rem);
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
    padding: 0.65rem 0.4rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--espresso);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a:active::after {
    opacity: 1;
    transform: translateY(0);
}

.nav-cta {
    border: none;
    text-decoration: none;
    text-align: center;
    color: white;
    background: var(--espresso);
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 25px rgba(59, 37, 21, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(59, 37, 21, 0.25);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(2rem, 6vw, 6rem) clamp(1.5rem, 7vw, 7rem);
    background: linear-gradient(135deg, rgba(241, 223, 207, 0.45), rgba(255, 255, 255, 0.9));
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 32px;
}

.hero-body {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.hero-content {
    flex: 1 1 320px;
    max-width: 520px;
}

.hero-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(43, 26, 18, 0.7);
}

.hero h1 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.2;
    color: var(--espresso-dark);
}

.hero-text {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: var(--espresso-dark);
    box-shadow: 0 12px 25px rgba(211, 155, 89, 0.35);
}

.btn.ghost {
    border: 1px solid rgba(43, 26, 18, 0.25);
    color: var(--espresso-dark);
    background: transparent;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.hero-gallery {
    flex: 1 1 320px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

.hero-spotlight {
    width: 100%;
    height: clamp(220px, 40vw, 420px);
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 25px 45px rgba(32, 18, 8, 0.12);
}

.subpage-header {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 6vw, 4rem);
}

.subpage-logo {
    width: clamp(140px, 28vw, 260px);
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}

.subpage-header h1 {
    margin: 0.5rem 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--espresso-dark);
    font-family: 'Abhaya', serif;
}

.subpage-header p {
    max-width: 640px;
    margin: 0.5rem auto 0;
    color: rgba(43, 26, 18, 0.85);
}

.subpage-ctas {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#logo {
    width: clamp(320px, 80vw, 900px);
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.slideshow-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 25px 45px rgba(32, 18, 8, 0.15);
}

.slide {
    display: none;
    width: 100%;
    height: 380px;
    display: flex;
    text-align: center;
    background: #fff;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade {
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from { opacity: 0.4 }
    to { opacity: 1 }
  }

.previo, .siguiente {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 12px 16px;
    margin-top: -22px;
    color: var(--espresso-dark);
    font-weight: bold;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    user-select: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.previo {
    left: 0;
}

.siguiente {
    right: 0;
}

.previo:hover,
.siguiente:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 24px rgba(0, 0, 0, 0.12);
}

#info_principal {
    text-align: center;
    margin-right: 10%;
    margin-left: 10%;
    text-wrap: balance;
}

.wrap {
    text-wrap: wrap;
    white-space-collapse: preserve-spaces;
}

.welcome-copy {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.welcome-copy p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

@font-face {
    font-family: 'Effra';
    src: url(fonts/Effra.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Abhaya';
    src: url(fonts/Abhaya.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 900px) {
    :root {
        --nav-offset: 150px;
    }

    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.65rem clamp(1rem, 5vw, 3rem);
    }

    .nav-brand {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 2.5rem;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-offset: 180px;
    }

    main {
        padding: 0 1.5rem 3rem;
    }

    .nav-inner {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .brand-title {
        font-size: 1.1rem;
        letter-spacing: 0.05em;
    }

    .brand-tagline {
        display: none;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        justify-content: center;
        text-align: center;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        padding: 0.5rem 0.25rem;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.55rem 1rem;
    }

    .subpage-header {
        padding: 1.5rem 1rem 2rem;
    }

    .subpage-logo {
        width: clamp(120px, 40vw, 200px);
    }

    .hero {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-gallery {
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
    }

    .slideshow-container {
        max-width: 100%;
    }

    .slide {
        height: 300px;
    }
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem clamp(1.5rem, 6vw, 8rem) 3rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, rgba(253, 247, 239, 0.9), rgba(241, 223, 207, 0.6));
}

.site-footer a {
    color: var(--espresso-dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--espresso);
}
/* Seccion de Noticias */

.news-section {
    margin: 40px auto;
    max-width: 1000px;
    width: 100%;
    padding: 3rem clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-intro {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    color: rgba(43, 26, 18, 0.8);
}

.news-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Abhaya', serif;
}

.news-cards {
    display: flex;
    flex-direction: column;
    max-width: auto;
    gap: 20px;
}

.news-card {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
    height: 250px;
    min-height: 200px;
    max-width: auto;
    box-shadow: 0 20px 40px rgba(27, 10, 0, 0.1);
}

.news-card .news-img {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* Fondo blanco si no hay imagen */
    background-color: white;
    background-color: white;
}

.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card .news-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
}

.news-card .news-content h3 {
    margin-bottom: 10px;
    font-family: 'Abhaya', serif;
    font-size: 1.3rem;
}

.news-card .news-content p {
    flex: 1;
    margin: 0;
    font-family: 'Effra', sans-serif;
    font-size: 0.95rem;
    color: #333;
}

.news-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--accent);
}

.news-link {
    align-self: flex-start;
    margin-top: 5px;
    font-family: 'Effra', sans-serif;
    color: var(--espresso-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    border-bottom: 2px solid rgba(211, 155, 89, 0.6);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.news-link:hover,
.news-link:focus-visible {
    color: var(--espresso);
    border-color: var(--espresso);
}

/* Hide disabled news cards */
.news-card.disabled {
    display: none;
}

@media (max-width: 600px) {
    .news-cards {
        gap: 15px;
    }
    .news-card {
        flex-direction: column;
        height: auto;
    }
    .news-card .news-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-offset: 200px;
    }
}
