:root {
  --color-beige: #f5f1eb;
  --color-dusty-rose: #d4a5a5;
  --color-sage: #8caaa8;
  --color-rosy-brown: #c4a484;
  --color-white: #ffffff;
  --color-text-dark: #4a4a4a;
  --color-text-light: #6b6b6b;
  --font-script: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-serif: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-beige);
}

/* Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-dusty-rose),
    var(--color-rosy-brown)
  );
  color: var(--color-white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}
.btn-secondary {
  background-color: var(--color-sage);
  color: var(--color-white);
}
.btn-secondary:hover {
  background-color: #95a287;
  transform: translateY(-2px);
}

.card {
  background: var(--color-white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  color: var(--color-dusty-rose);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-link {
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: var(--transition-smooth);
}
.nav-link:hover {
  color: var(--color-dusty-rose);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
      135deg,
      rgba(245, 241, 235, 0.9),
      rgba(212, 204, 204, 0.3)
    ),
    url("img/hero_bg.png") no-repeat center center/cover;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-top: 80px;
}
.hero-content h1 {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-dusty-rose);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
section {
  padding: 5rem 0;
}
.section-title {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.5rem;
  color: var(--color-dusty-rose);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* About */
.about-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.about-photo {
  width: 180px;
  height: 240px;
  border-radius: 15px;
  background: url(img/about.png) no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-white);
  flex-shrink: 0;
}

/* Resources */
.resources {
  background-color: var(--color-white);
}
.resource-card {
  height: 300px;
  width: 300px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  margin: 0 auto;
}
.resource-card:nth-child(1) {
  background: url(img/recurso_1.png) center/cover;
}
.resource-card:nth-child(2) {
  background: url(img/recurso_2.png) center/cover;
}
.resource-card:nth-child(3) {
  background: url(img/recurso_3.png) center/cover;
}
.resource-card:hover {
  transform: translateY(-10px) scale(1.02);
}
.resources-button {
  text-align: center;
  margin-top: 3rem;
}

/* Services */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  width: 250px;
  height: 250px;
  justify-content: center;
  transition: var(--transition-smooth);
  position: relative;
  margin: 0 auto;
}
.service-item:hover {
  transform: translateY(-8px) scale(1.02);
}
.service-item:nth-child(1) {
  background: #ede383;
  clip-path: polygon(
    10% 0%,
    90% 0%,
    100% 10%,
    100% 90%,
    90% 100%,
    10% 100%,
    0% 90%,
    0% 10%
  );
}
.service-item:nth-child(2) {
  background: #ffd6e8;
  clip-path: polygon(
    10% 0%,
    90% 0%,
    100% 10%,
    100% 90%,
    90% 100%,
    10% 100%,
    0% 90%,
    0% 10%
  );
}
.service-item:nth-child(3) {
  background: #d4f4dd;
  clip-path: polygon(
    10% 0%,
    90% 0%,
    100% 10%,
    100% 90%,
    90% 100%,
    10% 100%,
    0% 90%,
    0% 10%
  );
}
.service-item:nth-child(4) {
  background: #e6d7ff;
  clip-path: polygon(
    10% 0%,
    90% 0%,
    100% 10%,
    100% 90%,
    90% 100%,
    10% 100%,
    0% 90%,
    0% 10%
  );
}
.service-item::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: inherit;
  clip-path: inherit;
  filter: blur(10px);
  opacity: 0.3;
  z-index: -1;
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}
.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
  font-weight: 600;
  line-height: 1.3;
}
.service-item p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
  max-width: 180px;
}

/* Reviews */
.reviews {
  background-color: var(--color-white);
}
.review-header {
  text-align: center;
  margin-bottom: 3rem;
}
.review-quote {
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  color: var(--color-text-light);
  background: var(--color-white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.review-quote:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.map-container {
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer */
footer {
  background-color: var(--color-text-dark);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-dusty-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  color: var(--color-white);
  font-weight: 700;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-dusty-rose);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  opacity: 0;
  visibility: hidden;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  transform: translateY(-3px);
  background-color: #c49595;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  .about-card {
    flex-direction: column;
    text-align: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
  }
  .hero {
    background: linear-gradient(
        135deg,
        rgba(245, 241, 235, 0.9),
        rgba(212, 204, 204, 0.3)
      ),
      url("img/hero_bg_movil.png") no-repeat center center/cover;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
/* --- HAMBURGUER --- */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1100; /* por encima del overlay */
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-text-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- NAV OVERLAY MOBILE (MEJORADO) --- */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85); /* overlay oscuro */
    color: #fff;
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease,
      visibility 0s linear 0.35s;
    z-index: 1050;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
  }

  .nav-link {
    font-size: 1.25rem;
    color: #fff;
  }
  .nav-link:hover {
    color: #f5e3e3;
  }

  .hamburger.active span {
    background: var(--color-dusty-rose);
  }
}

/* --- SOBRE MÍ MEJORADO --- */
.section-title {
  /* ya existe; añadimos una subrayado suave */
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(
    90deg,
    var(--color-dusty-rose),
    var(--color-rosy-brown)
  );
  border-radius: 2px;
}

.about-card {
  /* ya existe; reforzamos layout en desktop */
  max-width: 1000px; /* + ancho para respirar */
  padding: 2.5rem; /* más aire dentro */
}

.about-photo {
  /* agrandamos foto en desktop */
  width: 320px;
  height: 420px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Tipografías del texto para darle peso visual */
#sobre-mi .card p {
  font-size: 1.125rem; /* ~18px */
  line-height: 1.85;
  color: var(--color-text-dark);
}

/* Un párrafo destacado (el primero) como “lead” */
#sobre-mi .card p:first-child {
  font-size: 1.25rem; /* ~20px */
  color: var(--color-text-dark);
  font-weight: 500;
}

/* En móviles, equilibramos */
@media (max-width: 900px) {
  .about-card {
    padding: 2rem;
  }
  .about-photo {
    width: 260px;
    height: 340px;
  }
  #sobre-mi .card p:first-child {
    font-size: 1.15rem;
  }
}
/* ===== REVIEWS: solo escritorio en fila ===== */
.reviews-grid {
  /* móvil por defecto: apiladas */
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    align-items: stretch;
  }
}

/* ===== FOOTER CENTRADO ===== */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.footer-logo {
  display: none !important;
}

/* === NAV MOBILE OVERRIDES (safe, based on original) === */
@media (max-width: 900px) {
  /* Hamburger color when active */
  .hamburger.active span {
    background: var(--color-dusty-rose) !important;
  }

  /* Dark overlay + smooth fade in/out */
  .nav-menu {
    /* keep overlay layout, just improve behavior/appearance */
    background: rgba(0, 0, 0, 0.85) !important;
    color: #fff !important;

    /* bidirectional transitions */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease,
      visibility 0s linear 0.35s;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
  }

  /* Links in overlay as white */
  .nav-menu .nav-link {
    color: #fff !important;
  }
  .nav-menu .nav-link:hover {
    color: #f5e3e3 !important;
  }
}

/* === FINAL NAV MOBILE FIX (full-viewport overlay + lighter gray) === */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: #d4a5a5 !important; /* gris más claro */
    color: #fff !important;
    backdrop-filter: blur(6px);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.6rem !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.35s ease, transform 0.35s ease,
      visibility 0s linear 0.35s !important;
    z-index: 1050 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nav-menu.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s !important;
  }
  .nav-menu .nav-link {
    font-size: 1.25rem !important;
    color: #ffffff !important;
  }
  .nav-menu .nav-link:hover {
    color: #f5e3e3 !important;
  }
  .hamburger.active span {
    background: var(--color-text-light) !important;
  }
  .hamburger:focus {
    outline: none;
  }
  .hamburger:focus-visible {
    outline: 2px solid var(--color-text-light);
    outline-offset: 3px;
  }
}
