/* ==========================================================================
   1. RESET, TIPOGRAFÍAS Y VARIABLES GLOBALES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* TUS COLORES OFICIALES (Actualizados) */
  --primary: #652f3f;     /* Foreground: Vino */
  --secondary: #97d0d7;   /* Background: Turquesa */

  /* VARIACIONES PARA SOMBRAS Y CAPAS */
  --primary-light: #8a4a5c;
  --primary-soft: #c9a3ad;

  --secondary-light: #bfe3e7;
  --secondary-soft: #e6f6f8;

  /* TONOS NEUTROS Y ACENTOS */
  --cream: #f8f6f3;
  --grey-soft: #f5f3f0;
  --grey-dark: #3a3a3a;
  --gold: #c8a96a;
  --white: #ffffff;
}

/* ==========================================================================
   2. ESTILOS DE CUERPO (BODY) Y MARCA DE AGUA
   ========================================================================== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cream);
  color: var(--grey-dark);
  line-height: 1.5;
  overflow-x: hidden;

  position: relative; 
  z-index: 0;
}

/* Watermark sutil con el logo en el fondo */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;

  /* --- RUTA CORREGIDA --- */
  background-image: url("img/fondo1.jpg"); 
  
  background-repeat: no-repeat; 
  background-size: cover;       
  background-position: center;  
  
  /* Control de transparencia */
  opacity: 0.8; 
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* ==========================================================================
   3. HEADER (STICKY & BLUR EFFECT)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #538b91 !important; /* Añadimos !important para asegurar el color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}

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

.header-right {
  display: flex;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Ocultar el logo móvil por defecto --- */
.logo-mobile {
  display: none; 
}

.brand-img {
  height: 46px;
  transition: transform 0.3s ease;
}

.brand-img:hover {
  transform: scale(1.02);
}

/* Navegación Desktop */
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  justify-content: flex-end; /* Alinea los textos a la derecha */
}

nav a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover {
  color: #ffc9d9;/* Contraste de texto */
}

/* Botón Hamburguesa */
.menu-toggle {
  display: none; /* Oculto en escritorio */
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #ffffff;
  cursor: pointer;
}

/* ==========================================================================
   4. HERO SECTION (BANNER PRINCIPAL)
   ========================================================================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  /* Eliminamos cualquier background aquí para que no tape la foto */
  background: transparent; 
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  
  /* Imagen por defecto (Para Escritorio) */
  background-image: url('img/mujerbombonela.jpg'); 
  
  background-size: cover;
  background-position: center;
  filter: brightness(0.95) saturate(1.05);
  z-index: 0; 
}

/* Capa sobre la imagen (Limpiamos la textura sucia) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Ponemos solo un velo oscuro súper sutil al 15% para que se lea la tarjeta, sin ruido ni rayas */
  background-color: rgba(0, 0, 0, 0.15); 
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  padding: 2rem;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  margin: 3rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 30px 40px -20px rgba(0,0,0,0.25);
  position: relative;
  
  /* Aseguramos que la tarjeta de texto quede siempre por encima de la foto */
  z-index: 1; 
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary);
}

.hero .sub {
  font-size: 1.1rem;
  margin: 1rem 0 1.5rem;
  color: var(--grey-dark);
}

/* Badge de Descuento */
.badge-off {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 60px;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 14px rgba(200, 169, 106, 0.4);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-gold {
  background: var(--gold);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 18px -8px rgba(200, 169, 106, 0.6);
  text-decoration: none;
  display: inline-block;
}

.btn-gold:hover {
  background: var(--primary);
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 12px 22px -8px rgba(101, 47, 63, 0.4);
}

/* ==========================================================================
   5. SECCIONES GENERALES Y QUIÉNES SOMOS
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--primary);
  border-bottom: 2px solid #655d2f;
  display: inline-block;
  margin-bottom: 2rem;
  padding-right: 1rem;
  /* --- Sombra aplicada a todos los títulos de sección --- */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.quienes-bg {
  background: linear-gradient(0deg, rgba(151,208,215,0.1), rgba(101,47,63,0.1)), url('https://images.unsplash.com/photo-1600948836101-f9ff52b7f7e6?q=80&w=1374&auto=format&fit=crop') center/cover no-repeat;
  border-radius: 36px;
  padding: 2.5rem;
  box-shadow: inset 0 0 0 1000px rgba(248,246,243,0.6);
}

.quienes-text {
  width: 100%; 
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 28px;
  font-size: 1.2rem;
  font-weight: 400;
}

/* ==========================================================================
   6. BENTO GRID (SERVICIOS)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Responsive Grid para Tablet */
@media (min-width: 600px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Estructura Bento para Desktop */
@media (min-width: 1000px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(240px, auto);
  }
  .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
  .bento-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .bento-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }
}

.bento-item {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 1.2rem;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(151, 208, 215, 0.2);
}

.bento-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -12px rgba(151, 208, 215, 0.25);
  border-color: var(--secondary);
}

.bento-item .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.bento-item h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.bento-item p {
  font-size: 0.95rem;
  color: var(--grey-dark);
  flex-grow: 1;
}

.bento-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0.7rem 0 0.3rem;
  filter: sepia(0.05) saturate(0.9);
}

.btn-link {
  margin-top: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid var(--gold);
  line-height: 1.2;
}

/* ==========================================================================
   7. CONTACTO Y FOOTER
   ========================================================================== */
.contact-block {
  background-color: #a4dce4a4; /* Color de fondo */
  border-radius: 48px 48px 0 0;
  padding: 3rem 1.5rem 2rem;
  margin-top: 2rem;
  border-top: 3px solid var(--secondary);
}

/* título a blanco para que resalte sobre el fondo */
.contact-block .section-title {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0;
}

.info-item i {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-item a {
  text-decoration: none;
  color: var(--grey-dark);
  font-weight: 500;
  word-break: break-word;
}

.info-item a:hover { 
  color: var(--gold); /* Efecto dorado al pasar el cursor */
}

.map-placeholder {
  background: var(--secondary-light);
  border-radius: 32px;
  overflow: hidden;
  min-height: 170px;
  border: 2px solid var(--secondary);
}

  .artech-link {
    color: #366d74;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .artech-link:hover {
    color: #d4af37; /* dorado */
  }

/* ==========================================================================
   8. COMPONENTES FLOTANTES (WHATSAPP)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 15px;
  background: #25D366;
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 99;
  transition: all 0.2s;
  /* border: 2px solid white; */
  text-decoration: none;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.whatsapp-float:hover {
  transform: scale(1.08) rotate(3deg);
  background: #20b858;
  -webkit-transform: scale(1.08) rotate(3deg);
  -moz-transform: scale(1.08) rotate(3deg);
  -ms-transform: scale(1.08) rotate(3deg);
  -o-transform: scale(1.08) rotate(3deg);
}

/* ==========================================================================
   9. MEDIA QUERIES PARA MÓVIL Y MENÚ (Actualizado: Efecto Cortina 3/4)
   ========================================================================== */

/* --- ESTILOS DEL MENÚ MÓVIL (Generado por JS) --- */
/* --- ESTILOS DEL MENÚ MÓVIL (Versión Compacta) --- */
.mobile-menu {
  position: fixed;
  top: -100%; 
  left: 0;
  width: 100%;
  
  /* --- EL CAMBIO CLAVE --- */
  height: auto;          /* Se adapta solo a lo que midan los textos */
  padding-top: 40px;     /* Espacio exacto arriba para que libre la 'X' */
  padding-bottom: 25px;  /* Aire exacto abajo para cerrar la cortina */
  /* ----------------------- */
  
  background-color: #538b91;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 200;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  border-radius: 0 0 30px 30px;
}

.mobile-menu.active {
  top: 0;
}

/* --- FONDO OSCURO/DIFUMINADO (OVERLAY) - Oculto por defecto --- */
.menu-overlay {
  display: none; /* No existe en pantallas grandes */
}

/* Contenedor de enlaces con menos separación */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem; /* Espacio más ajustado entre textos */
  margin-top: 20px;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem; /* Un poco más pequeño para elegancia */
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #ffc9d9; /* Amarillo al pasar cursor/tap */
}

/* --- BOTÓN DE CERRAR (X) CON INTERACCIÓN --- */
.close-menu {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Efecto amarillo solicitado para la X */
.close-menu:hover,
.close-menu:active {
  color: #ffff00; /* Se vuelve amarillo al pasar el cursor o dar tap */
  transform: scale(1.1); /* Ligero crecimiento para feedback visual */
}

/* --- AJUSTES DE ESCALA --- */
@media (max-width: 900px) {
  /* 1. Logos y navegación */
  .logo-desktop { display: none !important; }
  .logo-mobile { display: block !important; height: 35px; }
  .menu-toggle { display: block !important; }
  .nav-desktop { display: none !important; }

  .header-inner {
    flex-direction: row !important; 
    justify-content: space-between !important;
    padding: 0 5%;
  }

  .hero-bg {
    background-image: url('img/mujerbombonela2.jpg'); 
    background-position: center; 
  }

  /* 2. Activar y dar estilo al Fondo Oscuro (Overlay) */
  .menu-overlay {
    display: block; /* Ahora sí existe */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 700px) {
  .hero-content { margin: 1rem; padding: 1.5rem; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .quienes-bg { padding: 1.5rem; }
  .quienes-text { padding: 1.2rem; font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
}
/* FIN DEL ARCHIVO - BOMBONELA BY ARTECH DESIGN */