/* ============================================
   VARIABLES Y COLORES
   ============================================ */
:root {
    --primary: #DC143C;
    --primary-dark: #B22222;
    --secondary: #F5F5F5;
    --foreground: #1a1a1a;
    --foreground-light: #666666;
    --border: #e0e0e0;
    --accent: #FFD700;
    --white: #ffffff;
    --black: #000000;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    
    --radius: 10px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--foreground);
    background-color: var(--white);
    line-height: 1.6;
}

a {
  color: var(--white); /* o el color que quieras */
  text-decoration: none;
}

a:visited {
  color: var(--white);
}

a:hover {
  color: var(--white);
}

a:active {
  color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 3.5rem;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--foreground-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1rem;
    color: var(--foreground);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--foreground-light);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--foreground-light);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-btn:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 4rem;
    font-family: var(--font-display);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--foreground-light);
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--foreground-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline {
    padding: 80px 0;
    background-color: var(--secondary);
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 20px;
}

/* Elementos impares: contenido a la izquierda, punto en el centro */
.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    flex: 1;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    flex: 1;
}

.timeline-item .timeline-dot {
    flex-shrink: 0;
    margin-top: 0;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white);
    font-size: 0.8rem;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    line-height: 1;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--foreground-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: row !important;
        gap: 15px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    padding: 80px 0;
    background-color: var(--white);
}

.gallery-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.gallery-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
}

@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 100%;
    }
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.carousel-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background-color: var(--primary);
    width: 30px;
    border-radius: 5px;
}

.indicator:hover {
    background-color: var(--primary-dark);
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values {
    padding: 80px 0;
    background-color: var(--secondary);
}

.featured-quote {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 80px 0;
}

.quote-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.quote-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.quote-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
}

.quote-text {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .featured-quote {
        height: 300px;
        margin: 60px 0;
    }
    
    .quote-text {
        font-size: 1.8rem;
    }
    
    .quote-background {
        background-attachment: scroll;
    }
}

/* ============================================
   STAFF SECTION
   ============================================ */
.staff {
    padding: 80px 0;
    background-color: var(--white);
}

.staff-container {
    margin-bottom: 60px;
}

.staff-group {
    margin-bottom: 50px;
}

.staff-group-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.staff-group-title h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
}

.staff-group-count {
    font-size: 0.9rem;
    color: var(--foreground-light);
    margin-top: 5px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.staff-card {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s ease;
}

.staff-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.staff-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.staff-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 5px;
    word-break: break-word;
}

.staff-legajo {
    font-size: 0.85rem;
    color: var(--foreground-light);
    margin-bottom: 8px;
}

.staff-jerarquia {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.staff-total {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(255, 215, 0, 0.1));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.total-number {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.staff-total p {
    font-size: 1.1rem;
    color: var(--foreground-light);
}

.total-subtitle {
    font-size: 0.9rem;
    color: var(--foreground-light);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .staff-group-title h3 {
        font-size: 1.3rem;
    }
}

/* ============================================
   IMAGE LIGHTBOX MODAL
   ============================================ */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}

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

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

.modal-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    z-index: 1002;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--foreground);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.hidden {
    display: none;
}

.visible {
    display: block;
}

.staff-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--primary);
}

/* ============================================
   ESTILOS PARA SECCIONES DE PERSONAL
   ============================================ */
.staff-container-section {
    margin-bottom: 80px;
    padding: 50px 40px;
    background-color: rgba(220, 20, 60, 0.03);
    border-radius: var(--radius);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.staff-section-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.staff-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.staff-group-title h3 {
    font-size: 1.6rem;
    color: var(--foreground);
    margin: 0;
    font-weight: 700;
}

.staff-group-count {
    background-color: var(--primary);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Ajuste para los grupos simples (Reserva y Comisión) */
.staff-group {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .staff-container-section {
        padding: 30px 15px;
    }
    
    .staff-section-title {
        font-size: 1.8rem;
    }
}
