/* Common Styles for all pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Verdana', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 0; /* thinner header */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand (logo + title) */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: white;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Mobile toggle (hamburger) */
.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.nav-toggle .bar {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.nav-toggle .bar:nth-child(1) { top: 16px; }
.nav-toggle .bar:nth-child(2) { top: 24px; }
.nav-toggle .bar:nth-child(3) { top: 32px; }

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main Content */
main {
    /* Increase offset so fixed header doesn't overlap content */
    margin-top: 80px;
}

/* Reusable Card/Grid Styles */
.cards-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-section .section-title {
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    object-fit: cover;
}

.card iframe.card-media,
.card .card-media {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    background: #000;
    aspect-ratio: auto; /* deja que el browser use el ratio real del video */
    object-fit: contain; /* no corta nada */
}


.card-content {
    padding: 1.2rem 1.2rem 1.4rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: .5rem;
    letter-spacing: 1px;
}

.card-text {
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Member grid for About page */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.member-card .member-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.member-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: .25rem;
}

.member-links a {
    color: var(--secondary-color);
    text-decoration: none;
}

.member-links a:hover {
    text-decoration: underline;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    /* Make hero almost full screen but leave space for fixed header */
    height: calc(100vh - 80px);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Background video sits behind hero content */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* avoid intercepting clicks */
}

/* Overlay to keep text readable on top of video */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Image Carousel */
.carousel-section {
    background-color: var(--light-gray);
    padding: 4rem 2rem;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Responsive nav behavior */
@media (max-width: 900px) {
    .brand-title {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-block; }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--primary-color);
        border-top: 1px solid rgba(255,255,255,0.1);
        display: none;
        flex-direction: column;
        padding: 0.75rem 1.25rem 1rem;
        gap: 0.75rem;
    }

    .nav-menu.open { display: flex; }
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.carousel-nav:hover {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: white;
}

/* Videos Section */
.videos-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-container{
    position: relative;
    width: 100%;
    background: #000;
    border: 10px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Text Content Section */
.text-content {
    background-color: var(--light-gray);
    padding: 4rem 2rem;
}

.text-content-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 2rem 0;
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
    background-color: white;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

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


/* Bloque introductorio */
.intro-section {
  padding: 4rem var(--page-padding) 2rem;
  background: #0a0a0a;
  color: #fff;
  text-align: center;
}

.intro-container {
  width: min(100%, var(--maxw));
  margin: 0 auto;
}

.intro-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.intro-text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto;
}
