/* =============================================
SAMAY — Estilos principales
Archivo: style.css
============================================= */

/* ── VARIABLES ── */
:root {
--white:     #f3eef5;   
--green-lt:      #a8c5a0;   
--green-dk:   #6a9e72;   
--ul-purple: #e7d8ee;   
--purple:     #ab4bb4;   
--light:     #eee6f0;   
--crema:     #ffffff;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--crema);
  color: var(--purple);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: var(--crema);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,158,126,.2);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(59,47,47,.08); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: .02em;
  text-decoration: none;
}
.nav-logo span { color: var(--ul-purple); }

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--ul-purple);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--green-dk);
  color: var(--crema) !important;
  padding: .55rem 1.4rem;
  border-radius: 2rem;
  font-size: .85rem !important;
  transition: background .25s !important;
}
.nav-cta:hover { background: var(--ul-purple); color: var(--green-dk) !important; }
.nav-cta::after { display: none !important; }

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem 5% 4rem;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

#inicio::before {
  content: '';
  position: absolute;
  top: 20%; right: 11%;
  width: 35vw; height: 35vw;
  background-image: url('images/SVG_Mesa_de_trabajo_1_oscuro.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  opacity: .55;
}

.hero-text { position: relative; z-index: 2; isolation: isolate; animation: fadeUp .9s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 1rem;
  background: rgba(201, 105, 53, 0.281);
  padding: .35rem .9rem;
  border-radius: 2rem;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--purple);
  margin-bottom: 1.4rem;
}
h1 em {
  font-style: italic;
  color: var(--green-dk);
}

.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: #6a5a5a;
  max-width: 460px;
  margin-bottom: 2.2rem;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--green-dk);
  color: var(--crema);
  padding: .85rem 2rem;
  border-radius: 3rem;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: var(--ul-purple); color: var(--green-dk);transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--green-dk);
  color: var(--green-dk);
  padding: .85rem 2rem;
  border-radius: 3rem;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .25s, color .25s, transform .2s;
}
.btn-outline:hover { background: var(--green-dk); color: var(--crema); transform: translateY(-2px); }

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1.1s .2s ease both;
}

.hero-card {
  background: var(--crema);
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(59,47,47,.12);
  max-width: 2000px;
  width: 100%;
  text-align: center;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: .6rem;
}

.hero-card p {
  font-size: .9rem;
  color: #7a6b6b;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top: 1rem;
}

.stat-item {
  background: var(--crema);
  border-radius: 1rem;
  padding: .9rem .6rem;
}

.stat-item-large {
  background: var(--crema);
  border-radius: 1rem;
  padding: .9rem .6rem;
  grid-column: span 2;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--green-dk);
  display: block;
}

.stat-label {
  font-size: .72rem;
  color: #8a7a7a;
  letter-spacing: .04em;
}

/* ── SECCIONES BASE ── */
section { padding: 5rem 5%; }

.section-label {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: .8rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--purple);
  margin-bottom: 1rem;
}
.section-profId {
  font-size: .9rem;
  color: var(--green-dk);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.section-sub {
  font-size: .97rem;
  color: #7a6b6b;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── SERVICIOS ── */
#servicios { background: var(--light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--crema);
  border-radius: 1.5rem;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 20px rgba(59,47,47,.06);
  transition: transform .3s, box-shadow .3s;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(59,47,47,.12);
  border-top-color: var(--green-lt);
}

.service-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }

.service-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--purple);
}

.service-card p { font-size: .88rem; color: #7a6b6b; line-height: 1.65; }

/* ── SOBRE MÍ ── */
#sobre-mi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--green-lt);
  box-shadow: 0 8px 32px rgba(59,47,47,.15);
  flex-shrink: 0;
  justify-self: center; 
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 2rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .9rem;
  color: #5a4a4a;
}

.credential-item::before {
  content: '✓';
  width: 1.6rem; height: 1.6rem;
  background: var(--green-lt);
  color: var(--crema);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
}


/* ── UBICACIONES ── */
#ubicaciones { background: var(--light); }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.location-card {
  background: var(--crema);
  border-radius: 1.5rem;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 20px rgba(59,47,47,.06);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 4px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(59,47,47,.12);
  border-left-color: var(--green-dk);
}

.location-icon { font-size: 2rem; }

.location-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: .4rem;
}

.location-address {
  font-size: .9rem;
  color: #7a6b6b;
  line-height: 1.6;
  margin-bottom: .4rem;
}

.location-hours {
  font-size: .82rem;
  color: var(--green-dk);
  font-weight: 500;
}

.location-cta {
  display: inline-block;
  margin-top: auto;
  font-size: .85rem;
  font-weight: 500;
  color: var(--green-dk);
  letter-spacing: .03em;
  transition: letter-spacing .2s;
}
.location-card:hover .location-cta { letter-spacing: .08em; }

/* ── CONTACTO ── */
#contacto {
  background: var(--purple);
  color: var(--crema);
  text-align: center;
}

#contacto .section-title { color: var(--crema); }
#contacto .section-sub   { color: rgba(247,243,237,.7); margin: 0 auto 2.5rem; }

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .85rem 1.2rem;
  border: 1.5px solid rgba(247,243,237,.2);
  border-radius: .8rem;
  background: rgba(255,255,255,.07);
  color: var(--crema);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .25s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(247,243,237,.45); }

.contact-form select option { background: var(--purple); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--green-lt); }

.contact-form textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  background: var(--ul-purple);
  color: var(--purple);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .25s, transform .2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-submit:hover { background: #6a9e72; transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: #2a2020;
  color: rgba(247,243,237,.6);
  text-align: center;
  padding: 2rem 5%;
  font-size: .82rem;
}
footer a { color: var(--green-lt); text-decoration: none; }

.nav-toggle { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #inicio        { grid-template-columns: 1fr; padding-top: 6rem; gap: 0.5rem; }
  #inicio::before { display: flex; top: 10%; right: 50%; transform: translateX(50%); width: 60vw; height: 60vw; opacity: .3; }
  .hero-eyebrow  { display: none; }
  .hero-visual   { display: flex; margin: 0.5rem auto 3rem; }
  .hero-text     { top: 10%; }
  #sobre-mi      { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
    .about-visual {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  /* Botón hamburguesa */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--purple);
    cursor: pointer;
    z-index: 200;
  }

  /* Menú desplegable */
  .nav-links {
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background: var(--crema);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0 0 0 1rem;
  box-shadow: 0 8px 24px rgba(59,47,47,.12);
  padding: 0;
  gap: 0;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease, padding .3s ease;
}

.nav-links.open {
  display: flex;        
  max-height: 400px;   
  opacity: 1;
  padding: 1rem 0;
}

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: .85rem 1.5rem;
    font-size: .95rem;
    border-bottom: 1px solid rgba(122,158,126,.1);
  }

  .nav-links a:hover { background: var(--light); }

  .nav-cta {
    margin: .5rem 1rem 0;
    text-align: center;
    border-radius: 2rem !important;
  }
}