/* ============================================================
   ESPACIO DALL'AMORE — Design System
   Paleta: Teal #087067 | Salmón #E58B67 | Lima #E4E57B | Beige #F6DFC6
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --teal:    #087067;
  --teal-dk: #065a52;
  --salmon:  #E58B67;
  --salmon-dk:#d4744f;
  --lima:    #E4E57B;
  --beige:   #F6DFC6;
  --beige-lt:#FDF7F0;
  --white:   #FFFFFF;
  --dark:    #2C2C2C;
  --mid:     #5a5a5a;
  --light:   #f0ece7;

  --ff-head: 'Outfit', sans-serif;
  --ff-body: 'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 12px rgba(8,112,103,0.08);
  --shadow-md: 0 8px 32px rgba(8,112,103,0.12);
  --shadow-lg: 0 20px 60px rgba(8,112,103,0.15);
  --transition: 0.3s ease;
  --max-w: 1160px;
}

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

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 100px; }

body {
  font-family: var(--ff-body);
  color: var(--dark);
  background: var(--beige-lt);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: var(--ff-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--mid); }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--beige { background: var(--beige-lt); }
.section--white { background: var(--white); }
.section--teal  { background: var(--teal); color: var(--white); }
.section--beige-warm { background: var(--beige); }
.section-tag {
  display: inline-block; font-family: var(--ff-head); font-size: .75rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--salmon); margin-bottom: 12px;
}
.section-title { color: var(--teal); margin-bottom: 16px; }
.section--teal .section-title { color: var(--white); }
.section-desc { font-size: 1.05rem; max-width: 600px; margin-bottom: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--salmon); color: var(--white); border-color: var(--salmon);
}
.btn-primary:hover { background: var(--salmon-dk); border-color: var(--salmon-dk); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--teal); border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.btn-white {
  background: var(--white); color: var(--teal); border-color: var(--white);
}
.btn-white:hover { background: var(--beige); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-body { padding: 28px; }

/* ── NAV ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(253,247,240,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8,112,103,0.08);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar-logo img { height: 48px; width: auto; }
.navbar-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-family: var(--ff-head); font-weight: 500; font-size: .92rem;
  color: var(--dark); padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--teal); background: rgba(8,112,103,0.06); }
.navbar-cta { margin-left: 12px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--teal); border-radius: 2px; transition: all var(--transition);
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 16px 24px 24px; background: var(--beige-lt);
  border-top: 1px solid rgba(8,112,103,0.08);
  position: fixed; top: 72px; left: 0; right: 0; z-index: 990;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 16px; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--beige-lt) 0%, var(--beige) 50%, rgba(8,112,103,0.06) 100%);
  padding-top: 72px;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25; pointer-events: none;
}
.hero-blob-1 { width: 500px; height: 500px; background: var(--salmon); top: -100px; right: -100px; }
.hero-blob-2 { width: 400px; height: 400px; background: var(--lima); bottom: -80px; left: -80px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  max-width: var(--max-w); margin: 0 auto; padding: 80px 24px;
}
.hero-tag { color: var(--salmon); font-family: var(--ff-head); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { color: var(--teal); margin-bottom: 24px; }
.hero-title span { color: var(--salmon); }
.hero-desc { font-size: 1.1rem; color: var(--mid); margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-img-wrap {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--beige) 0%, rgba(8,112,103,0.1) 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--teal); opacity: 0.5;
}
.hero-img-placeholder svg { width: 64px; height: 64px; }
.hero-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-badge-icon { width: 40px; height: 40px; background: var(--beige); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--salmon); font-size: 1.2rem; }
.hero-badge-text { font-family: var(--ff-head); font-size: .8rem; }
.hero-badge-text strong { display: block; color: var(--teal); font-size: 1rem; }

/* ── MISIÓN STRIP ── */
.mision-strip {
  background: var(--teal); padding: 48px 0; text-align: center;
}
.mision-strip blockquote {
  font-family: var(--ff-head); font-size: clamp(1.1rem,2.5vw,1.5rem);
  font-weight: 300; color: var(--white); max-width: 860px; margin: 0 auto;
  line-height: 1.6; padding: 0 24px;
}
.mision-strip blockquote strong { font-weight: 800; color: var(--beige); }

/* ── SERVICIOS (3 pilares) ── */
.pilares-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 48px; }
.pilar-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.pilar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pilar-card-top {
  padding: 36px 32px 28px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
}
.pilar-card:nth-child(2) .pilar-card-top { background: linear-gradient(135deg, var(--salmon) 0%, var(--salmon-dk) 100%); }
.pilar-card:nth-child(3) .pilar-card-top { background: linear-gradient(135deg, #4a8a6e 0%, var(--teal) 100%); }
.pilar-icon {
  width: 56px; height: 56px; background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.8rem; margin-bottom: 16px;
}
.pilar-card-top h3 { color: var(--white); }
.pilar-card-body { padding: 28px 32px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.pilar-card-body p { color: var(--mid); }
.pilar-card-body ul { display: flex; flex-direction: column; gap: 10px; }
.pilar-card-body ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--mid);
}
.pilar-card-body ul li::before {
  content: '✦'; color: var(--salmon); font-size: .7rem; flex-shrink: 0; margin-top: 4px;
}
.pilar-card-footer { padding: 0 32px 32px; }

/* ── EQUIPO ── */
.equipo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 28px; margin-top: 48px; }
.prof-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.prof-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.prof-photo {
  width: 100%; height: 220px; overflow: hidden;
  background: linear-gradient(160deg, var(--beige) 0%, rgba(8,112,103,0.12) 100%);
  display: flex; align-items: center; justify-content: center;
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--beige-lt); display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 2rem; font-weight: 800; color: var(--teal);
  border: 3px solid rgba(8,112,103,0.15);
}
.prof-body { padding: 24px 20px; }
.prof-name { font-family: var(--ff-head); font-weight: 800; color: var(--teal); font-size: 1.1rem; margin-bottom: 4px; }
.prof-title { font-size: .85rem; color: var(--salmon); font-weight: 600; margin-bottom: 6px; }
.prof-matricula { font-size: .78rem; color: var(--mid); margin-bottom: 14px; background: var(--beige-lt); display: inline-block; padding: 3px 10px; border-radius: 20px; }
.prof-desc { font-size: .88rem; color: var(--mid); margin-bottom: 20px; line-height: 1.6; }
.prof-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: var(--white); border-radius: var(--radius-sm);
  padding: 10px 20px; font-family: var(--ff-head); font-weight: 600; font-size: .85rem;
  transition: all var(--transition);
}
.prof-wa:hover { background: #1ebe5d; transform: translateY(-2px); }
.prof-wa svg { width: 18px; height: 18px; }

/* ── CAROUSEL ── */
.carousel-wrapper {
  position: relative;
  margin-top: 48px;
}
.carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 24px;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-item {
  flex: 0 0 calc(33.333% - 19px);
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid rgba(8,112,103,0.1);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
}
.carousel-btn:hover {
  background: var(--teal);
  color: var(--white);
}
.carousel-btn.prev {
  left: -22px;
}
.carousel-btn.next {
  right: -22px;
}
@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(50% - 14px);
  }
}
@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 85%;
  }
  .carousel-btn {
    display: none;
  }
}

/* ── PROPUESTAS (tabs) ── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  font-family: var(--ff-head); font-weight: 600; font-size: .88rem;
  padding: 10px 20px; border-radius: 40px; border: 2px solid rgba(8,112,103,0.2);
  background: transparent; color: var(--teal); cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--teal); background: rgba(8,112,103,0.06); }
.tab-btn.active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; animation: fadeIn .3s ease; }
.propuesta-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--salmon);
  transition: transform var(--transition), box-shadow var(--transition);
}
.propuesta-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.propuesta-card h4 { color: var(--teal); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.propuesta-card h4 span { font-size: 1.3rem; }
.propuesta-card p { font-size: .92rem; }

/* ── ESPACIOS / CONSULTORIOS ── */
.espacios-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 48px; }
.espacio-card {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.espacio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.espacio-img {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(160deg, var(--beige) 0%, rgba(8,112,103,0.15) 100%);
  display: flex; align-items: center; justify-content: center;
}
.espacio-img img { width: 100%; height: 100%; object-fit: cover; }
.espacio-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--teal); opacity: 0.45; text-align: center; padding: 24px;
}
.espacio-img-placeholder svg { width: 48px; height: 48px; }
.espacio-img-placeholder p { font-family: var(--ff-head); font-size: .85rem; }
.espacio-info { background: var(--white); padding: 20px 24px; }
.espacio-info h4 { color: var(--teal); margin-bottom: 6px; }
.espacio-info p { font-size: .88rem; }

/* ── TURNO CTA ── */
.turno-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
  padding: 80px 0; text-align: center;
}
.turno-section h2 { color: var(--white); margin-bottom: 16px; }
.turno-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto 40px; }
.turno-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: #0d0d0d; color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: .9rem; line-height: 1.6; max-width: 280px; }
.footer-col h5 { font-family: var(--ff-head); font-weight: 600; color: var(--white); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--salmon); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .88rem; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--salmon); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all var(--transition);
}
.footer-social a:hover { background: var(--salmon); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-bottom a { color: var(--salmon); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); cursor: pointer;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
.wa-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--dark); color: var(--white);
  font-family: var(--ff-head); font-size: .8rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; }
.wa-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-right: none; border-left-color: var(--dark);
}

/* ── OBRAS SOCIALES (reserved) ── */
.obras-sociales-banner {
  background: var(--beige-lt); border: 2px dashed rgba(8,112,103,0.2);
  border-radius: var(--radius-md); padding: 24px 32px; text-align: center;
  margin-top: 48px; color: var(--mid); font-size: .9rem;
  font-style: italic; display: none; /* activar cuando esté lista la info */
}

/* ── PREGUNTAS FRECUENTES (FAQ) ── */
.faq-container {
  max-width: 800px; margin: 0 auto 48px;
  display: flex; flex-direction: column; gap: 16px;
}
.faq-item {
  background: var(--white);
  border: 1px solid rgba(8,112,103,0.1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--salmon);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--beige-lt); }
.faq-content {
  padding: 0 24px 24px;
  color: var(--mid);
  font-size: .95rem;
  line-height: 1.6;
}


/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pilares-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .espacios-grid { grid-template-columns: 1fr 1fr; }
  .navbar-menu { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .hero-visual { order: -1; }
  .hero-img-wrap { aspect-ratio: 16/9; }
  .hero-badge { display: none; }
  .pilares-grid, .tab-panel.active, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .espacios-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tabs { gap: 6px; }
  .tab-btn { font-size: .8rem; padding: 8px 14px; }
  .turno-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
