/* ********** Custom Properties ********** */
:root {
  /* 🎨 COLORES PRINCIPALES (Estilo Femenino / Rosa & Blanco) */
  --primary-color: #db2777;    
  /* Rosa elegante / Palo de rosa intenso: para botones principales y enlaces */
  --secondary-color: #701a75;  
  /* Ciruela / Vino profundo: para títulos, íconos y encabezados de gran contraste */
  --accent-color: #fb7185;     
  /* Rosa coral / Rose gold: para detalles llamativos, badges y llamadas a la acción */

  /* 📝 COLORES DE TEXTO (Lectura suave y delicada) */
  --text-main: #2d1a29;        
  /* Berenjena muy oscuro: excelente lectura sin la dureza del negro puro */
  --text-muted: #86687a;       
  /* Gris rosado medio: para subtítulos, fechas e información secundaria */
  --text-light: #fdf2f8;       
  /* Blanco rosado / Marfil suave: para textos sobre superficies oscuras */
  --text-description: rgba(253, 242, 248, .9);
  /* Descripciones sobre fondos oscuros (hero/footer) */

  /* 🖼️ COLORES DE FONDO (Blancos rosados y capas claras) */
  --bg-main: #fbf4f8;          
  /* Blanco rosado mate: fondo general muy claro, suave y descanso para la vista */
  --bg-surface: #ffffff;       
  /* Blanco puro / Nácar: para resaltar las tarjetas (cards) y contenedores del fondo */
  --bg-dark: #4c0519;          
  /* Vino nocturno / Borra de vino: para el pie de página (footer) o secciones oscuras */

  /* 🛠️ BORDES Y ESTADOS (Detalles técnicos) */
  --border-color: #f3d5e5;     
  /* Rosa pastel muy claro: para líneas divisorias y bordes delicados */
  --error: #e11d48;            
  /* Carmesí suave: para alertas de error */
  --success: #10b981;          
  /* Verde menta/esmeralda: para mensajes de confirmación */

  /* ===== COLORES: WHATSAPP ===== */
  --wsp-color-bg: #25d366;
  --wsp-color-bg-hover: #1da851;
  --wsp-color-icon: #fff;
  --wsp-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  --wsp-shadow-hover: 0 6px 20px rgba(37, 211, 102, 0.6);

  /* Layout */
  --max-width: 1200px;
  --header-height: 4rem;
  --navbar-padding: 1.5rem 1rem;
}

/* ********** Reset ********** */
html {
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 16px;
  scroll-behavior: smooth;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text-color);
}

a {
  color: var(--link-color);
  transition: all 0.5s ease-out;
}

a:hover {
  opacity: 0.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.85rem; }
h6 { font-size: 0.7rem; }

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

p {
  line-height: 1.6;
}

/* ********** Utilidades ********** */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 120px;
  right: 80px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--wsp-color-bg); 
  color: var(--wsp-color-icon);
  box-shadow: var(--wsp-shadow);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: var(--wsp-color-bg-hover);
  transform: scale(1.1);
  box-shadow: var(--wsp-shadow-hover);
}
@keyframes pulse-whatsapp {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 1rem 1.2rem;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: #ffffff
}

.btn:active {
  transform: scale(0.98);
}

.btn-w-50 {
  display: block;
  width: 50%;
}

.whatsapp-float {
  animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-float svg {
  fill: currentColor;
}

.section {
  padding: 2rem 1rem;
}

section[id] {
  scroll-margin-top: var(--header-height);
  min-height: 100vh;
}

.text-center {
  text-align: center; 
}

/* ********** Barra navegacion ********** */
.navbar {
  background: var(--bg-dark);
  color: var(--text-light);
  top: 0;
  z-index: 999;
  width: 100%;
  left: 0;
  position: fixed;
  z-index: 999;
  padding: var(--navbar-padding);
}

.navbar > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Estado normal: ☰ */
.menu-icon::before {
  content: "\2630"; /* Unicode ☰ */
}

/* Cuando el menú está desplegado: ✖ */
.menu-toggle:checked + .menu-icon::before {
  content: "\2715"; /* Unicode ✖ */
}

.menu {
  display: none;
  flex-direction: column;
  background: var(--bg-dark);
  position: absolute;
  top: 100%;          
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  border-radius: 15px;
}

.menu a {
  padding: 1rem;
  text-decoration: none;
  color: var(--text-light);
  text-align: center;
}

.menu a:hover {
  background: var(--accent-color);
}

.menu-toggle:checked ~ .menu {
  display: flex;
}

/* Desktop: desde 1024px en adelante */
@media (min-width: 1024px) {
  .navbar {
    top: 0;
    bottom: auto;
    padding: var(--navbar-padding);
  }
  .navbar > .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }
  .logo {
    position: static;             
  }
  .menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
  }
  .menu a {
    border: none;
    padding: 0 1rem;
  }
  .menu-icon {
    display: none;                 
  }
  .menu a:hover {
    background: none;
}
} 

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  min-height: calc(100vh - 70px);
  padding: 5rem 1rem 3rem;
  color: var(--text-light);
  background-image:
    linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=50&w=1200&fm=webp&fit=crop");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 428;
  object-fit: cover;
  object-position: center 50%;
  margin: 3rem auto 0;

  border-radius: 1.25rem;

  border: 1px solid var(--border-color);
  border-bottom: 10px solid var(--primary-color);
  box-shadow: 0 20px 50px rgba(76, 5, 25, .35);
}

.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 42rem;
  text-align: left;
}

.title-hero {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-align: center;
  color: var(--text-light);
}

.hero-description {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-description);
  line-height: 1.7;
  max-width: 42rem;
}

/* ========== TABLET ========== */
@media (min-width: 768px) {
  .hero {
    display: flex;
  }

  .hero-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: left;
  }

  .title-hero {
    font-size: 4rem;
    line-height: 1.05;
    max-width: 12ch;
    text-align: left;
  }

  .hero-description {
    font-size: 1.4rem;
    text-align: left;
  }

  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-image img {
    width: 120%;
    margin: 0 auto;
  }
}

/* ========== DESKTOP ========== */
@media (min-width: 1024px) {
  .hero {
    gap: 5rem;
  }

  .hero-image img {
    width: 130%;
  }

  .title-hero {
    font-size: 4.5rem;
    line-height: 1.2;
    max-width: 12ch;
    text-align: left;
  }
}

/* ********** ABOUT ********** */

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}


.about-text {
  text-align: center;
}


.about-kicker {
  color: var(--primary-color);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
}


.about-title {
  margin: 1rem 0;

  color: var(--secondary-color);
  font-size: 2rem;
  line-height: 1.2;
}


.about-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}


/* TABLET */
@media (min-width: 768px) {

  .about-content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }


  .about-text,
  .about-image {
    flex: 1;
  }


  .about-text {
    text-align: left;
  }

}


/* DESKTOP */
@media (min-width: 1024px) {

  .about-content {
    gap: 5rem;
  }


  .about-title {
    font-size: 3rem;
  }

}

/* ********** services ********** */

.services-title {
  margin-bottom: 1rem;

  color: var(--secondary-color);
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
}

.services-description {
  max-width: 45rem;
  margin: 0 auto;

  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
}

.service-card summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  cursor: pointer;
  list-style: none;
  min-height: 150px;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-icon {
  font-size: 3rem;
}

.service-card h3 {
  margin: 0;
  color: var(--secondary-color);
}

.service-modal {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: .75rem;
  background: var(--bg-main);
  color: var(--text-muted);
  line-height: 1.6;
}

/* TABLET */
@media (min-width: 768px) {
  .services-title {
    font-size: 2.5rem;
  }

  .services-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 0 0 calc(50% - 1rem);
  }

}

/* DESKTOP */
@media (min-width: 1024px) {
  .services-title {
    font-size: 3rem;
  }

  .service-card {
    flex: 0 0 calc(25% - 1rem);
  }

}

/* ********** CONTACT ********** */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  background: var(--bg-surface);
  border-radius: 1.25rem;
  box-shadow: 0 15px 35px rgba(45, 26, 41, .08);
  text-align: center;
}

.contact-kicker {
  display: inline-block;
  padding: .4rem 1rem;
  border-radius: 2rem;
  color: var(--primary-color);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-header h2 {
  margin: 1rem 0;
  color: var(--secondary-color);
  font-size: 2rem;
  line-height: 1.2;
}

.contact-description {
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
}

.contact-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: .8rem;
  margin: 2rem 0 0;
  font-style: normal;
}

.contact-details p,
.contact-details a {
  display: flex;
  gap: .5rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  margin: 0;
  text-align: left;
}

.contact-details a:hover {
  color: var(--primary-color);
}

/* REDES */
.contact-social {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.5rem;
}

.contact-social a {
  padding: .6rem 1rem;
  background: var(--bg-main);
  border-radius: .75rem;
  color: var(--secondary-color);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}

.contact-social a:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* MAPA */
.map-placeholder {
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}

.map-button {
  position:absolute;
}


.map-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-map {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 15px 35px rgba(45, 26, 41, .12);
}

.map-button {
  min-width:120px;
  min-height:48px;
  padding:.8rem 1.5rem;

  border:none;
  border-radius:.75rem;

  background:var(--secondary-color);
  color:var(--text-light);

  font-size:1rem;
  font-weight:700;

  cursor:pointer;
  transition:.3s ease;
}

.map-button:hover {
  background:var(--primary-color);
}

.map-button:focus-visible {
  outline:3px solid var(--accent-color);
  outline-offset:3px;
}

/* TABLET */
@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }

  .contact-info,
  .contact-map {
    flex: 1;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  .contact-details p,
  .contact-details a {
    justify-content: flex-start;
  }

  .contact-social {
    justify-content: flex-start;
  }
 .map-placeholder {
    min-height: 260px;
  }

  .map-button {
    min-width: 140px;
    min-height: 50px;
    font-size: 1.05rem;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .contact-content {
    gap: 5rem;
  }

  .contact-header h2 {
    font-size: 3rem;
  }
  .contact-map iframe {
    height: 480px;
  }
}


/* ********** FOOTER ********** */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 242, 248, .25);
  text-align: center;
}

.footer-bottom small {
  color: var(--text-description);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-dev {
  font-size: 1.1rem;
}

.footer-dev a {
  color: var(--accent-color);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .3s ease;
}

.footer-dev a:hover {
  color: var(--text-light);
}

/* ========== TABLET ========== */
@media (min-width: 768px) {
  .footer {
    padding: 4rem 2rem 2rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-bottom small {
    font-size: 1.05rem;
  }

  .footer-dev a {
    font-size: 1.25rem;
  }

}
