/* ================================================
   Ana Carrizo Centro de Estética — style.css
   ================================================ */

/* ===== VARIABLES ===== */
:root {
  --color-primary:    #B99DC0;
  --color-secondary:  #F3EEF7;
  --color-accent:     #8C6898;
  --color-dark:       #2C1E35;
  --color-light:      #FFFFFF;
  --color-highlight:  #DCCFE6;
  --color-muted:      #7A6B82;
  --font-heading:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', system-ui, sans-serif;
  --nav-height:       100px;
  --transition:       0.3s ease;
  --radius:           12px;
  --shadow:           0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-md:        0 8px 40px rgba(0, 0, 0, 0.13);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
em { font-style: italic; }

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p  { line-height: 1.75; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-light);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #7B5A8A;
  border-color: #7B5A8A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 104, 152, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-light);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-light);
}
.btn-nav {
  background: var(--color-accent);
  color: var(--color-light);
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border-radius: 50px;
  flex-shrink: 0;
}
.btn-nav:hover { background: #7B5A8A; transform: translateY(-1px); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: var(--color-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-shrink: 0;
}
.logo-img {
  height: 110px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo-img { height: 68px; }
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--color-primary); }
#navbar.scrolled .nav-links a { color: var(--color-light); }
#navbar.scrolled .nav-links a:hover { color: var(--color-highlight); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--color-light);
  border-radius: 2px;
  transition: all var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--color-dark); }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #1E1228 0%, #5A366A 45%, #B99DC0 100%);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 60%, rgba(185, 157, 192, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.22);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 8rem 1.5rem 5rem;
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.hero h1 {
  color: var(--color-light);
  margin-bottom: 1.4rem;
}
.hero h1 em { color: var(--color-highlight); }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 2.5rem;
  max-width: 580px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust i { color: var(--color-highlight); font-size: 0.85rem; }

/* ===== SECCIONES GENERALES ===== */
.section { padding: 5.5rem 0; }
.section-light   { background: var(--color-secondary); }
.section-bg-alt  { background: #F8F3FC; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { color: var(--color-accent); }
.section-subtitle { color: var(--color-muted); font-size: 1.05rem; margin-top: 0.5rem; }

/* ===== PROPUESTA DE VALOR ===== */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.valor-card {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.valor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.valor-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.valor-icon i { font-size: 1.6rem; color: var(--color-primary); }
.valor-card h3 { color: var(--color-accent); margin-bottom: 0.75rem; }
.valor-card p  { color: var(--color-muted); font-size: 0.95rem; }

.nosotros-imagen {
  margin: 2rem auto 2.5rem;
  max-width: 860px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.nosotros-imagen img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ===== SECCIONES DE SERVICIO ===== */
.servicio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Layout invertido para masajes: contenido izquierda, imagen derecha.
   En HTML: contenido primero, imagen segunda. CSS no necesita cambios en desktop.
   En mobile se ajusta con order (ver @media abajo). */

.servicio-imagen { position: relative; }
.servicio-imagen img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}

.img-placeholder {
  border-radius: var(--radius);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: 'Agregá tu foto aquí';
  position: absolute;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.img-peluqueria { background: linear-gradient(135deg, #C8AACC 0%, #8C6498 100%); }
.img-masajes    { background: linear-gradient(135deg, #AC8CB8 0%, #6B4878 100%); }
.img-depilacion { background: linear-gradient(135deg, #D4BCDC 0%, #A484B0 100%); }

.img-label {
  width: 96px; height: 96px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-label i { font-size: 2.5rem; color: rgba(255, 255, 255, 0.88); }

.servicio-tag {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.servicio-contenido h2 { color: var(--color-accent); margin-bottom: 1rem; }
.servicio-contenido > p { color: var(--color-muted); margin-bottom: 1.5rem; }

.servicio-lista { margin-bottom: 2rem; }
.servicio-lista li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-highlight);
}
.servicio-lista li:last-child { border-bottom: none; }
.servicio-lista i { color: var(--color-primary); font-size: 0.7rem; flex-shrink: 0; }

/* ===== FRASE ===== */
.section-frase {
  background: linear-gradient(135deg, #2C1E35 0%, #5A366A 100%);
}
.frase-wrapper {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.frase-icon {
  font-size: 2.2rem;
  color: var(--color-highlight);
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.85;
}
.frase-texto {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: var(--color-light);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.frase-firma {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-highlight);
  letter-spacing: 0.08em;
}

/* ===== CARRUSEL GALERÍA ===== */
.carrusel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.carrusel-track-container {
  overflow: hidden;
  border-radius: var(--radius);
  flex: 1;
}
.carrusel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carrusel-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  border-radius: var(--radius);
  overflow: hidden;
}
.carrusel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.carrusel-slide:hover img { transform: scale(1.04); }

.carrusel-btn {
  background: var(--color-light);
  border: none;
  color: var(--color-accent);
  font-size: 2.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  z-index: 2;
}
.carrusel-btn:hover {
  background: var(--color-primary);
  color: var(--color-light);
  transform: scale(1.1);
}
.carrusel-btn:disabled { opacity: 0.3; cursor: default; transform: none; }

.carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.carrusel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-highlight);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.carrusel-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .carrusel-slide {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
  .carrusel-slide img { height: 280px; }
}
@media (max-width: 480px) {
  .carrusel-slide { flex: 0 0 100%; }
  .carrusel-slide img { height: 260px; }
  .carrusel-btn { width: 38px; height: 38px; font-size: 1.8rem; }
}

/* ===== CONTACTO ===== */
.contacto-cta {
  text-align: center;
  margin-bottom: 3rem;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: var(--color-light);
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.38);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-whatsapp i { font-size: 1.4rem; }
.btn-whatsapp:hover {
  background: #1EBE5A;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contacto-mapa {
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-md);
}
.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.contacto-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.info-card {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.info-card strong { display: block; font-size: 0.85rem; color: var(--color-accent); margin-bottom: 0.28rem; }
.info-card p { font-size: 0.95rem; color: var(--color-dark); }
.info-card a { color: var(--color-accent); font-weight: 500; }
.info-card a:hover { text-decoration: underline; }

.info-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1rem;
}

.social-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-links a {
  width: 40px; height: 40px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-light);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
#footer {
  background: #18102A;
  color: rgba(255, 255, 255, 0.7);
}
.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 3rem;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo-main {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-highlight);
  letter-spacing: 0.01em;
}
.footer-logo-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.footer-tagline { font-size: 0.9rem; margin-top: 0.8rem; color: rgba(255, 255, 255, 0.45); }

.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.9rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--color-highlight); }

.footer-social { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-2px);
}
.footer-bottom {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  background: #25D366;
  color: var(--color-light);
  border-radius: 50px;
  padding: 0.8rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.42);
  transition: all var(--transition);
}
.whatsapp-float i { font-size: 1.4rem; }
.whatsapp-float:hover {
  background: #1EBE5A;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.52);
}

/* ===== ANIMACIONES FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  .valores-grid      { grid-template-columns: repeat(2, 1fr); }
  .servicio-layout   { gap: 2.5rem; }
  .footer-layout     { grid-template-columns: 1fr 1fr; }
  .footer-social     { grid-column: 1 / -1; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
  /* Navbar */
  .hamburger  { display: flex; }
  .btn-nav    { display: none; }

  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--color-light);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 998;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    color: var(--color-dark);
    padding: 0.9rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--color-secondary);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a::after { display: none; }

  /* Secciones de servicio: layout apilado */
  .servicio-layout,
  .servicio-layout.reverse { grid-template-columns: 1fr; }

  /* En masajes (reverse): imagen arriba en mobile */
  .servicio-layout.reverse .servicio-imagen { order: -1; }

  /* Contacto */
  .contacto-layout { grid-template-columns: 1fr; }
  .contacto-mapa { height: 260px; }
  .contacto-info-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-layout { grid-template-columns: 1fr; gap: 2rem; }

  /* Grids */
  .valores-grid { grid-template-columns: 1fr; }

  /* WhatsApp flotante: solo ícono */
  .whatsapp-float span { display: none; }
  .whatsapp-float { border-radius: 50%; padding: 0.9rem; bottom: 1.5rem; right: 1.5rem; }

  .section { padding: 3.5rem 0; }
  .img-placeholder { min-height: 280px; }
  .servicio-imagen img { height: 280px; }
}

/* ===== RESPONSIVE — MOBILE PEQUEÑO ===== */
@media (max-width: 480px) {
  .hero-ctas  { flex-direction: column; align-items: center; }
  .hero-trust { flex-direction: column; align-items: center; gap: 0.7rem; }
  .contacto-form { padding: 1.75rem; }
}
