/* ==========================
       Variables de diseño
       ========================== */
:root {
  --bg: #f7f7f7; /* fondo marfil suave */
  --card: #ffffff; /* tarjetas limpias */
  --text: #1e1e1e; /* texto casi negro, elegante */
  --muted: #5c5c5c; /* texto secundario gris cálido */
  --accent: #c49200; /* dorado champagne */
  --accent-deep: #c49200; /* dorado oscuro para hover */
  --glass: rgba(255, 255, 255, 0.8);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --container: 1120px;
}

/* ==========================
       Reset & base
       ========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  scroll-behavior: smooth;
  position: relative;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  display: block;
}

/*HEADERRR*/
header.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.82) 100%
  );
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(18, 18, 18, 0.04);
}

.main-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  position: relative;
  z-index: 2;
}

.d-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo img {
  width: 135px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul li {
  position: relative;
}

.site-nav ul li a {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

.site-nav ul li.current-menu-item a,
.site-nav ul li a:hover {
  color: var(--accent-deep);
}

.site-toggle {
  display: none; /* Ocultar menú hamburguesa en desktop */
}

.nav-close {
  display: none; /* Ocultar botón cerrar en desktop */
}

.hdr-btn {
  margin-left: 32px;
}

.site-btn {
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-deep) 100%
  );
  color: #fff;
  padding: 10px 22px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(177, 136, 38, 0.12);
  text-decoration: none;
  transition: background 0.2s;
}

.site-btn:hover {
  background: linear-gradient(
    180deg,
    var(--accent-deep) 0%,
    var(--accent) 100%
  );
}

/* ==========================
       Layout
       ========================== */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px;
}

#servicios-image {
  background-image: url("../img/section1.webp");
  background-size: cover;
  background-position: center center;

  & h2 {
    color: #fff;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(6px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.65)
  );
  border-bottom: 1px solid rgba(18, 18, 18, 0.04);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-deep));
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(197, 162, 86, 0.12);
  font-weight: 700;
  color: white;
  font-family: "Playfair Display";
}
.brand h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.btn-primary {
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-deep) 100%
  );
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(177, 136, 38, 0.15);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(34, 34, 34, 0.06);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

/* ==========================
       HERO
       ========================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
  padding: 64px 24px;
}
.hero-left h2 {
  margin: 0 0 12px 0;
  font-family: "Playfair Display";
  font-size: 40px;
  line-height: 1.05;
  color: var(--text);
}
.hero-left p {
  margin: 0 0 22px 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 680px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}
.hero-fig {
  background: linear-gradient(180deg, #ffffff 0%, #fbf7ef 100%);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(33, 33, 33, 0.03);
  animation: floaty 3s ease-in-out infinite;
}
.kpi {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.kpi .item {
  background: var(--card);
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16, 16, 16, 0.04);
  min-width: 120px;
  text-align: center;
}
.kpi .num {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-deep);
}
.kpi .desc {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================
       SECCIONES
       ========================== */
section {
  padding: 36px 24px;
}


.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 12, 12, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: var(--text);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* PAQUETES */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.package {
  position: relative;
  border-radius: 12px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  border: 1px solid rgba(181, 151, 87, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: all 0.35s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* === Hover principal === */
.package:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
  border-color: rgba(181, 151, 87, 0.25);
}

/* === Brillo suave dorado animado === */
.package::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(181,151,87,0.35), rgba(255,255,255,0.2), rgba(181,151,87,0.35));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s ease, background-position 1.5s ease;
  z-index: 0;
}

.package:hover::before {
  opacity: 1;
  background-position: right center;
}

/* === Contenido dentro del card === */
.package > div {
  position: relative;
  z-index: 1;
}

.package .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-deep);
}

.package ul {
  margin: 12px 0 18px 0;
  padding-left: 18px;
  color: var(--muted);
}

.package li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* === Botones animados === */
.package button {
  transition: transform 0.25s ease, background 0.3s ease, color 0.3s ease;
}

.package button:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* TIMELINE */

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.step {
  flex: 1 1 250px;
  text-align: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
  cursor: pointer;
}
.step:hover {
  transform: scale(1.03);
}

/* Card con hover */
.card-hover {
  width: 100%;
  max-width: 280px;
  height: 200px;
  perspective: 1000px;
  position: relative;
}

/* Capas animadas */
.card-hover .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: 0.6s;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

/* Imagen superior */
.card-hover .slide1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

/* Contenido oculto inicialmente */
.card-hover .slide2 {
  background: #fff;
  transform: translateY(100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.card-hover .slide2 .content {
  text-align: center;
}
.card-hover .slide2 h4 {
  margin: 4px 0;
  font-size: 15px;
}
.card-hover .slide2 p {
  margin: 6px 0 0 0;
  color: #666;
  font-size: 13px;
}

/* Hover animado */
.card-hover:hover .slide1 img {
  transform: translateY(-100%);
}
.card-hover:hover .slide2 {
  transform: translateY(0);
}

/* --- 💡 Soporte táctil (para móviles) --- */
.card-hover.active .slide1 img {
  transform: translateY(-100%);
}
.card-hover.active .slide2 {
  transform: translateY(0);
}


/* TESTIMONIOS */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.testimonial {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(180deg, #fff 0%, #fcfcfb 100%);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(12, 12, 12, 0.03);
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-deep);
  font-family: "Playfair Display";
  flex-shrink: 0;
}

/* CTA */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fffaf6 0%, #ffffff 100%);
  border: 1px solid rgba(181, 151, 87, 0.06);
  box-shadow: 0 10px 30px rgba(197, 162, 86, 0.06);
}
.cta h3 {
  margin: 0;

  font-size: 22px;
}
.cta p {
  margin: 4px 0 0 0;
  color: var(--muted);
}

/* FORM */
.contact-card {
  width: 560px;
  max-width: 460px;
  padding: 18px;
  margin-top: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  border: 1px solid rgba(12, 12, 12, 0.04);
  box-shadow: var(--shadow);
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(34, 34, 34, 0.07);
  background: #fff;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  margin-bottom: 12px;
}

/* FOOTER */
.top-footer {
  padding: 48px 24px;
}

.site-row {
  margin: 0 -20px;
  display: flex;
  flex-wrap: wrap;
}

.site-col {
  padding: 0 20px;
}

.site-col h6 {
  text-transform: capitalize;
  font-weight: 500;
  font-size: 22px;
}

.col-3 {
  width: 25%;
}

.col-6 {
  width: 50%;
}

.ftr-nav ul {
  margin-top: 16px;
}

.ftr-nav ul li {
  margin-bottom: 14px;
  list-style: none;
  transition: all 0.3s ease-in-out;
}

.ftr-nav li:hover{
  margin-left: 0.4rem;
}

.ftr-nav ul li a {
  text-decoration: none;
  color:var(--text)
}


.bottom-footer {
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
}

.ftr-nav.ftr-contact .ftr-contact {
  margin-top: 28px;
}

.ftr-contact p span.icon {
  width: 20px;
}

footer .ftr-contact p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font-weight: 500;
}

.ftr-contact img {
  display: block;
  margin-right: 10px;
}

.social-links {
  display: flex;
  gap: 14px;
  flex-direction: column;
}

.social-links div {
  display: flex;
  gap: 14px;
}

.go-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================
       Responsive
       ========================== */
@media (min-width: 1440px) {
  :root {
    --container: 1400px;
  }

  .hero {
    grid-template-columns: 1fr 520px;
    gap: 48px;
    padding: 96px 24px;
  }

  .hero-left h2 {
    font-size: 48px;
  }

  .grid-3 {
    gap: 32px;
  }

  .card {
    padding: 28px;
  }

  .packages {
    gap: 32px;
  }

  .package {
    padding: 32px;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 360px;
    gap: 24px;
    padding: 48px 12px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .top-footer .site-col{
    padding: 0 15px;
    width: 33.333%;
 }

 .timeline {
  justify-content: center;
}
.card-hover {
  max-width: 260px;
  height: 180px;
}

}

@media (max-width: 760px) {
  header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .main-header {
    padding: 10px 8px;
  }
  .d-flex {
    flex-direction: row;
    gap: 8px;
  }
  .site-logo img {
    width: 100px;
    height: 32px;
  }
  .main-navigation {
    gap: 8px;
    position: relative;
  }
  .site-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 8px;
    z-index: 100;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 24px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 99;
    padding-top: 32px;
  }
  .site-nav.active {
    transform: translateX(0);
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .site-nav ul li {
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
  }
  .site-nav ul li a {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    color: var(--muted);
    background: none;
  }
  .nav-close {
    display: block;
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
  }
  .hdr-btn {
    margin-left: 0;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 6px;
    gap: 0;
  }
  .hero-left {
    width: 100%;
    text-align: center;
  }
  .hero-left h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .hero-left p {
    font-size: 15px;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
  }
  .kpi {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }
  .hero-fig {
    margin-top: 18px;
    width: 100%;
    max-width: 320px;
    padding: 10px;
  }

  .wrap_services {
    padding: 32px
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 14px;
  }

  .timeline {
    flex-direction: column;
    gap: 24px;
  }
  .card-hover {
    max-width: 90%;
    height: 200px;
  }
  .card-hover .slide2 h4 {
    font-size: 16px;
  }
  .card-hover .slide2 p {
    font-size: 14px;
  }

  .testimonial {
    flex-direction: column;
  }

  .testimonial p {
    margin-top: 10px;
    font-size: 15px;
    max-width: 100%;
  }
  .contact-card {
    width: 100%;
  }

  .ftr-nav{
    margin-bottom: 35px;
  }

  .top-footer .site-col{
    width: 100%;
  }

  .bottom-footer {
    padding: 0;
  }
}

@media (max-width: 375px) {
  .wrap{
    padding: 0;
  }

  .site-row{
    padding: 32px;
  }

  .card-hover {
    max-width: 100%;
    height: 180px;
  }
  .card-hover .slide2 p {
    font-size: 13px;
  }
}

/* small helpers */
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.pill {
  background: rgba(197, 162, 86, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent-deep);
  display: inline-block;
}

@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}
