:root {
  /* Variables de Color Premium */
  --primary-color: #004225; /* British Racing Green que aplicará a los títulos */
  --bg-color: #f7f6f2;      /* Crema roto muy sedoso para el fondo general */
  --text-dark: #3a3a3a;     /* Gris carbón para no ser tan agresivo como el negro */
  --accent-gold: #c2a878;   /* Pequeño tono champagne para toques extra */
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.8;
  overflow-x: hidden;
}

/* TÍTULOS Y CABECERAS EXCLUSIVAS (Cambio al verde) */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVEGACIÓN Y LOGOTIPO FLOTANTE */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 6%;
  background-color: transparent;
  position: absolute; /* Flota por encima de la imagen Hero */
  width: 100%;
  top: 0;
  z-index: 100;
  transition: all 0.4s ease;
}

/* Logotipo */
header .logo {
  font-size: 1.6rem;
  letter-spacing: 3px;
  font-weight: 700;
  color: #fff; /* Blanco sobre la foto */
  text-transform: uppercase;
  transition: color 0.4s;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul li a {
  color: #fff; /* Blanco sobre la foto */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--accent-gold);
}

/* Sticky Header Dinámico (Aparece al hacer scroll gracias a JavaScript) */
header.scrolled {
  position: fixed;
  background-color: #ffffff; /* Cuando baja se pone blanco */
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  padding: 1.2rem 6%; /* Se encoge un poco */
}
header.scrolled .logo,
header.scrolled nav ul li a {
  color: var(--primary-color); /* Se ponen verdes sobre fondo blanco */
}
header.scrolled nav ul li a:hover {
  color: var(--accent-gold);
}


/* HERO: LA PORTADA GRANDE */
.hero {
  height: 100vh;
  /* El Gradiente baja el brillo de la foto para mejorar la super legibilidad del texto blanco */
  /* MÁGIA DE FOTOS: Aquí busca la foto 'portada_principal.png' que pongas en la carpeta assets/images */
  background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('../assets/images/portada_principal.png');
  background-size: cover;
  background-position: center bottom;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
}

.hero h1 {
  color: #fff !important; /* Excepción del verde */
  font-size: 4.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.2;
  max-width: 900px;
  text-shadow: 3px 5px 15px rgba(0,0,0,0.4);
}

/* ESTILO DE BOTONES PREMIUM (Y HOVERS MAGICOS) */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: var(--primary-color);
  color: #fff;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  background-color: #fff !important; /* Se pone blanco dando la vuelta */
  box-shadow: 0px 10px 25px rgba(0, 66, 37, 0.2);
  transform: translateY(-3px);
}

/* Excepción del botón del Hero que es transparente */
.hero .btn {
  background-color: rgba(0,66,37, 0.8);
  border-color: rgba(255,255,255,0.3);
}
.hero .btn:hover {
  background-color: #fff !important;
  color: var(--primary-color) !important;
  border-color: #fff;
}


/* UTILIDADES DE SECCIÓN */
.section-padding {
  padding: 8rem 6%; /* Mucho aire (Whispace) para ser elegante */
}
.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 5rem;
}


/* GALERÍA DE SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
}

.service-card {
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}

.service-img-wrapper {
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 2rem;
  height: 380px; /* Homogeiniza todas las fotos a la misma altura en vertical */
  box-shadow: 0px 15px 30px rgba(0,0,0,0.08); /* Sombra elegante */
}

/* EFECTO BOUTIQUE EN IMAGENES: El mágico scale en hover */
.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.06);
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 1rem;
}
.service-card .price {
  font-weight: 500;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}


/* QUIENES SOMOS Y CONTACTO (Layout Partido 50-50) */
.about-layout, .contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text h2 {
  font-size: 3.5rem;
  margin-bottom: 2.5rem;
}

.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12); /* Sombra fuerte paralela espectacular */
}
.about-img img {
  width: 100%;
  height: auto;
  display: block;
}


/* CONTACTO Y REDES */
.contact-section {
  background-color: #ebeae3; /* Un gris crema más oscuro para destacar el final */
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.social-grid img {
  width: 100%;
  border-radius: 6px;
  height: 200px;
  object-fit: cover;
  box-shadow: 0px 8px 15px rgba(0,0,0,0.06);
  transition: transform 0.6s ease;
}
.social-grid img:hover {
  transform: scale(1.03); /* Minimicro zoom al cuadro de red social */
}


/* ANIMACIONES PRINCIPALES: El Fade In Up nativo */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* RESPONSIVE (Móviles Y Tablets) */
@media screen and (max-width: 900px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .about-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .section-title {
    font-size: 2.4rem;
  }
  /* Ocultamos navegación simple en móvil (normalmente aquí entra un menú hamburguesa que creamos si solicitas) */
  nav ul {
    gap: 1rem;
    display: none; 
  }
  header.scrolled {
      justify-content: center;
  }
}

/* =========================================
   GALERÍA PRINCIPAL EXTRA (4 FOTOS)
   ========================================= */
.gallery-grid {
  display: grid;
  /* 4 columnas en PC */
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0px 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-grid img:hover {
  transform: scale(1.05); /* Efecto zoom premium */
}

/* Hacerla Responsive para móvil (Pasa de 4 a 2 a 1 fotón) */
@media screen and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
