/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500&display=swap');

/* ==================== VARIABLES CSS ==================== */
:root {
  /* Colores */
  --primary-color: #D4AF37; /* Dorado metálico */
  --primary-color-alt: #b89b34;
  --dark-color: #121212;
  --dark-color-light: #1E1E1E;
  --light-color: #F5F5F5;
  --text-color: #CCCCCC;
  --text-color-dark: #333;

  /* Tipografía */
  --body-font: 'Roboto', sans-serif;
  --title-font: 'Montserrat', sans-serif;
  
  /* Tamaños de fuente */
  --big-font-size: 3.5rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 1.8rem;
  --normal-font-size: 1rem;
  
  /* Márgenes */
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--light-color);
  color: var(--text-color-dark);
}

h1, h2, h3 {
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--text-color-dark);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== CLASES REUTILIZABLES ==================== */
.section {
  padding: 4rem 0 2rem;
}


.text-primary {
  color: var(--primary-color);
}

.section--dark {
  background-color: var(--dark-color-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark span {
    color: var(--light-color);
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section__subtitle {
  display: block;
  text-align: center;
  margin-bottom: var(--mb-3);
  color: var(--primary-color);
  font-weight: 700;
  color: var(--primary-color);
}

.container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

/* ==================== HEADER Y NAV ==================== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background-color: var(--dark-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav {
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--primary-color);
  font-family: var(--title-font);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav__logo {
  display: flex; /* Para alinear imagen y texto */
  align-items: center;
  gap: 0.5rem; /* Espacio entre el logo y el texto */
}

.nav__logo-img {
  height: 40px; /* Ajusta la altura de tu logo como necesites */
  width: auto;
}

.nav__menu {
  display: flex;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  color: var(--light-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__close, .nav__toggle {
  display: none;
  cursor: pointer;
  color: var(--light-color);
  font-size: 1.5rem;
}

.nav__link.active-link {
  color: var(--primary-color); /* Lo pone de color dorado */
}

/* ==================== HERO ==================== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* para que el video no sobresalga */
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* hace que el video cubra toda la pantalla */
  z-index: -2; /* detrás de todo */
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1; /* encima del video, debajo del texto */
}

.hero__content {
  position: relative;
  z-index: 1; /* por encima del overlay */
  text-align: center;
  color: var(--light-color);
}

.hero__title {
  font-size: var(--big-font-size);
  font-weight: 900;
  margin-bottom: var(--mb-1);
  color: var(--light-color);
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--mb-3);
}

/* ==================== BOTONES ==================== */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--dark-color);
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-3px);
}

/* ==================== NOSOTROS ==================== */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}
.about__img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.about__data p {
    margin-bottom: var(--mb-2);
    line-height: 1.7;
}
    .about__data .section__title,
.about__data .section__subtitle {
  text-align: left; /* Alineamos los títulos a la izquierda */
}

.about__data .section__subtitle {
  margin-bottom: var(--mb-2); /* Reducimos un poco el margen inferior del subtítulo */
}

.about__history {
  /* La magia está aquí: le decimos que empiece en la columna 1 y termine en la última (-1) */
  grid-column: 1 / -1; 
  margin-top: 1rem; /* Añade un espacio para separarlo de la sección de arriba */
}

/* También vamos a hacer que los títulos dentro de este nuevo bloque se alineen a la izquierda */
.about__history .section__subtitle {
  text-align: left;
}

.about__img-container {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  margin-top: 1rem;
}

.about__img {
  max-width: 100%; /* para que no se salga en móviles */
  height: auto;
}





/* ==================== FILOSOFÍA ==================== */
.filosofia__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
  gap: 2rem; /* espacio entre tarjetas */
  margin-top: 2rem;
}

.filosofia__card {
  background: #1e1e1e; /* ejemplo, ajusta a tu diseño */
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.filosofia__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--mb-2);
}

/* ==================== HORARIOS Y PRECIOS ==================== */
.pricing__table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.pricing__table th, .pricing__table td {
    padding: 1rem;
    text-align: left;
}
.pricing__table thead {
    background-color: var(--dark-color-light);
    color: var(--light-color);
}
.pricing__table tbody tr:nth-child(even) {
    background-color: #f0f0f0;
}
.pricing__table tbody tr:hover {
    background-color: #e0e0e0;
}

/* ==================== GALERÍA ==================== */
.gallery__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.gallery__container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, filter 0.3s;
}
.gallery__container img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ==================== CONTACTO ==================== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.contact__info p {
    margin-bottom: var(--mb-2);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact__form input, .contact__form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: var(--light-color);
    font-family: var(--body-font);
}
.contact__form input::placeholder, .contact__form textarea::placeholder {
    color: #888;
}
.contact__form textarea {
    resize: vertical;
    min-height: 150px;
}
.contact__form .btn {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-color);
    padding: 2rem 0;
    color: var(--text-color);
}
.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__social {
    display: flex;
    gap: 1.5rem;
}
.footer__social-link {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}
.footer__social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== MEDIA QUERIES (RESPONSIVE) ==================== */
@media screen and (max-width: 768px) {
    :root {
        --big-font-size: 2.5rem;
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
    }

    .contact__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

     .about__container {
        /* Definimos dos columnas: una para la imagen (35%) y otra para el texto (el resto) */
        grid-template-columns: 35% 1fr; 
        gap: 1rem; /* Reducimos el espacio entre imagen y texto en móvil */
        align-items: center; /* Centramos verticalmente el contenido */
        text-align: left; /* Alineamos el texto a la izquierda para mejor lectura */
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--dark-color);
        flex-direction: column;
        padding: 6rem 2rem 0;
        transition: right 0.4s ease;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .nav__close, .nav__toggle {
        display: block;
    }
    
    .about__data {
        order: 2;
    }
    .about__img {
        order: 1;
    }
    
    .contact__form .btn {
        align-self: center;
    }
    
    .footer__container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filosofia__container {
    grid-template-columns: 1fr; /* solo 1 columna en pantallas pequeñas */
  }
}