/* Variables CSS */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #e63946;
    --font-titulos: 'Dashiell Fine', serif;
    --font-cuerpo: 'Aptos Mono', monospace;
    --transition: all 0.3s ease;
}

/* Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cuerpo);
    color: var(--primary-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.container {
    /* Sin max-width para que ocupe todo el ancho disponible */
    margin: 0 auto;
    padding: 0 20px;
}

/* Pantalla de Carga */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.logo-img {
    max-height: 60px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #555;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #eee;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    width: 70%;
    background-color: var(--primary-color);
}

.progress-text {
    font-size: 0.9rem;
    color: #555;
}

/* Overlay del Menú */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Menú de Navegación */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.slide-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 40%; /* Ancho para escritorio */
    height: 100vh;
    background-color: var(--secondary-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.slide-menu.is-active {
    transform: translateX(0);
}

.menu-content {
    padding: 100px 40px 40px;
}

.menu-logo {
    margin-bottom: 30px;
    text-align: center;
}

.menu-logo-img {
    max-height: 40px;
}

.menu-section {
    margin-bottom: 40px;
}

.menu-section h3 {
    font-family: var(--font-titulos);
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.menu-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.menu-section ul {
    list-style: none;
}

.menu-section li {
    margin-bottom: 0;
}

.menu-section a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.menu-section a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-left: 10px; /* Pequeño desplazamiento al hover */
}

.menu-section a::after {
    content: '>';
    font-size: 1.2rem;
    transform: rotate(-45deg); /* Flecha diagonal */
    transition: transform 0.2s ease;
}

.menu-section a:hover::after {
    transform: rotate(0deg); /* Flecha recta al hover */
}

/* Sección Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--secondary-color);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content .logo-img {
    max-height: 80px;
    margin-bottom: 30px;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-button {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-cuerpo);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Cinta Deslizante */
.marquee {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Sección Servicios */
.services {
    padding: 60px 0;
}

.services h2 {
    font-family: var(--font-titulos);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.services p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-button {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-cuerpo);
}

.service-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.service-button.filled {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.service-button.filled:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Sección Equipo */
.team {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.team-intro {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 20px;
    gap: 40px;
}

.team-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center; /* Centra el slider */
}

.swiper-aspect-ratio-container {
    position: relative;
    width: 100%;
    max-width: 60%; /* 40% menos de ancho */
    aspect-ratio: 2 / 3; /* Proporción más sutil para la galería */
    overflow: hidden;
    border-radius: 8px;
}

.team-description {
    flex: 1;
    min-width: 300px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-description h2 {
    font-family: var(--font-titulos);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.team-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-members {
    padding: 60px 20px; /* Espacio añadido entre secciones */
    background: black;
    display: flex;
    justify-content: center; /* Centra el slider de miembros */
    margin-bottom: 60px; /* Espacio extra antes de la siguiente sección */
}

.teamMembersSwiper {
    width: 100%;
    max-width: 75%; /* 25% menos de ancho */
}

.member-card {
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.member-title {
    font-family: var(--font-titulos);
    font-size: 1.2rem; /* Tamaño aumentado */
    text-align: left; /* Alineación a la izquierda */
    padding: 15px;
    background-color: var(--secondary-color); /* Fondo blanco */
    color: var(--primary-color); /* Texto negro */
}

.member-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3; /* Proporción vertical para las fotos de miembros */
}

.member-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-name {
    text-align: left; /* Alineación a la izquierda */
    padding: 15px;
    font-size: 1rem;
    margin: 0;
}

/* Sección Subastas */
.auctions {
    padding: 80px 20px; /* Padding añadido para no pegarse a los bordes en móvil */
}

.auctions h2 {
    font-family: var(--font-titulos);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.auctions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columnas en escritorio */
    gap: 20px;
    margin-bottom: 20px; /* Espacio entre filas */
}

.auction-card {
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.auction-card:hover {
    transform: translateY(-10px);
}

.auction-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.auction-card h3 {
    font-family: var(--font-titulos);
    font-size: 1.3rem;
    padding: 20px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo-img {
    max-height: 50px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact h3 {
    font-family: var(--font-titulos);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Estilos Swiper */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    background-color: var(--primary-color);
}

.teamGallerySwiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.teamGallerySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

/* Media Queries para Responsive */
@media (max-width: 1024px) {
    .slide-menu {
        width: 60%;
    }
    
    .team-intro {
        flex-direction: column;
        gap: 30px;
    }

    .auctions-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
    }
}

@media (max-width: 768px) {
    .slide-menu {
        width: 80%; /* Ancho para móviles */
    }
    
    .menu-content {
        padding: 80px 20px 20px;
    }
    
    .hero-content .logo-img {
        max-height: 60px;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .services h2,
    .team-description h2,
    .auctions h2 {
        font-size: 2rem;
    }
    
    .buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .service-button {
        width: 200px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo,
    .footer-contact {
        margin-bottom: 20px;
    }

    .auctions-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles grandes */
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        top: 15px;
        right: 15px;
    }
    
    .logo-img {
        max-height: 40px;
    }
    
    .hero-content .logo-img {
        max-height: 50px;
    }
    
    .hero-text {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .services,
    .team,
    .auctions {
        padding: 40px 0;
    }
    
    .auctions {
        padding: 40px 20px; /* Mantiene el padding lateral en móviles pequeños */
    }
    
    .services h2,
    .team-description h2,
    .auctions h2 {
        font-size: 1.8rem;
    }
    
    .services p {
        font-size: 0.9rem;
    }
    
    .team-description p {
        font-size: 0.9rem;
    }
    
    .member-title {
        font-size: 1.1rem;
    }
    
    .member-name {
        font-size: 0.9rem;
    }
    
    .auction-card img {
        height: 200px;
    }
    
    .auction-card h3 {
        font-size: 1rem;
        padding: 10px;
    }
    
    .footer-logo-img {
        max-height: 40px;
    }
    
    .footer-logo p {
        font-size: 0.8rem;
    }
    
    .footer-contact h3 {
        font-size: 1.1rem;
    }
    
    .footer-contact a {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
    }

    .auctions-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles pequeños */
    }
}