@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --teal:        #1A7A6E;
  --teal-dim:    #155f56;
  --teal-pale:   rgba(26,122,110,.12);
  --teal-light:  #4DB8A8;
  --navy:        #1B3A6B;
  --dark:        #0D1F1C;
  --dark-2:      #081412;
  --mid:         #12332E;
  --gray:        #5A7A76;
  --gray-light:  #F0FAF8;
  --white:       #FFFFFF;
  --white-off:   #F5FDFB;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-pill: 50px;
  --radius-lg:   4px 28px 4px 28px;
  --radius-md:   14px;
  --shadow-sm:   0 2px 8px rgba(13,31,28,.08);
  --shadow-md:   0 8px 32px rgba(13,31,28,.16);
  --shadow-lg:   0 24px 64px rgba(13,31,28,.22);
  --transition:  0.28s cubic-bezier(0.4,0,0.2,1);
  --navbar-h:    76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--dark); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; font-weight: 400; }
.h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; font-weight: 400; }
.lead { font-size: clamp(.95rem, 1.8vw, 1.1rem); line-height: 1.75; color: var(--gray); font-weight: 400; }
.label { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.accent { color: var(--teal-light); font-style: italic; }
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }
.section { padding: 6rem 0; }
.section--alt { background: var(--gray-light); }
.text-center { text-align: center; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); z-index: 200; width: 0%; transition: width .1s; }

.reveal { opacity: 1; transform: none; }
.reveal.revealed { opacity: 1; transform: none; }

.btn { display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 2rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem; transition: var(--transition); white-space: nowrap; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dim); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26,122,110,.35); }
.btn--outline { border: 1.5px solid rgba(255,255,255,.4); color: rgba(255,255,255,.9); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); }
.btn--outline:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.12); }
.btn--white { background: var(--white); color: var(--dark); }
.btn--white:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); background: transparent; }
.btn--ghost:hover { border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.btn--sm { padding: .65rem 1.3rem; font-size: .82rem; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(13,31,28,.94); backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,.05); transition: box-shadow var(--transition); }
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--navbar-h); }
.navbar__logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--white-off); }
.navbar__logo .accent { color: var(--teal-light); font-style: italic; }
.navbar__links { display: none; align-items: center; gap: 2.5rem; }
.navbar__links a { font-size: .86rem; font-weight: 500; color: rgba(255,255,255,.6); transition: color var(--transition); }
.navbar__links a:hover { color: var(--teal-light); }
.navbar__actions { display: flex; align-items: center; gap: .75rem; }
.navbar__cta { display: none; }
.navbar__burger { width: 42px; height: 42px; border-radius: var(--radius-pill); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.navbar__burger span { display: block; width: 18px; height: 1.5px; background: var(--white-off); border-radius: 2px; transition: var(--transition); }
.navbar__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; top: var(--navbar-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-light); z-index: 99; padding: 1.5rem 1.5rem 2rem; flex-direction: column; gap: .25rem; box-shadow: var(--shadow-lg); }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: .85rem 1rem; border-radius: var(--radius-pill); font-weight: 500; color: var(--mid); transition: background var(--transition); }
.mobile-menu a:hover { background: var(--gray-light); color: var(--teal); }
.mobile-menu__cta { margin-top: 1rem; }
.mobile-menu__cta .btn { width: 100%; justify-content: center; }

/* HERO */
@keyframes kenburns { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.08) translate(-1.5%,-1%); } }
@keyframes float { 0%,100% { transform: translateY(0px) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(26,122,110,.4); } 50% { box-shadow: 0 0 0 12px rgba(26,122,110,.0); } }
@keyframes scrollBounce { 0%,100% { transform: translateY(0); opacity:1; } 50% { transform: translateY(6px); opacity:.4; } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.hero {
  min-height: 580px;
  padding: calc(var(--navbar-h) + 1.25rem) 0 2rem;
  display: flex;
  align-items: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('https://images.pexels.com/photos/4386466/pexels-photo-4386466.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-size: cover; background-position: center;
  opacity: 0.14; pointer-events: none; z-index: 0;
  animation: kenburns 18s ease-in-out infinite alternate;
}
.hero__gradient {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(26,122,110,.2) 0%, transparent 50%, rgba(27,58,107,.08) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; position: relative; z-index: 1; width: 100%; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 14px rgba(26,122,110,.5); }
.hero__title { margin-bottom: .4rem; color: var(--white-off); }
.hero__title em { color: var(--teal-light); font-style: italic; display: block; }
.hero__subtitle { margin-bottom: .5rem; max-width: 500px; color: rgba(255,255,255,.62); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .5rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.hero__trust-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.5); }
.hero__trust-item svg { color: var(--teal-light); flex-shrink: 0; }

.hero__visual { position: relative; }
.hero__img-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; border: 1px solid rgba(255,255,255,.08); position: relative; }
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero__img-wrap:hover img { transform: scale(1.03); }
.hero__img-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,122,110,.15) 0%, transparent 60%); pointer-events: none; }

.hero__float-card { position: absolute; bottom: -1.5rem; left: -1.5rem; background: rgba(13,31,28,.95); backdrop-filter: blur(20px); color: var(--white-off); border-radius: var(--radius-pill); padding: 1.1rem 1.6rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; z-index: 2; border: 1px solid rgba(26,122,110,.3); animation: float 5s ease-in-out infinite; }
.hero__float-icon { width: 40px; height: 40px; background: rgba(26,122,110,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal-light); flex-shrink: 0; }
.hero__float-card strong { font-family: var(--font-display); font-size: 1rem; display: block; line-height: 1.2; }
.hero__float-card span { font-size: .72rem; color: rgba(255,255,255,.5); }

.hero__badge { position: absolute; top: -1.5rem; right: -1rem; background: var(--teal); color: var(--white); border-radius: 50%; width: 90px; height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-md); animation: badgePulse 3s ease-in-out infinite; z-index: 2; }
.hero__badge-number { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; font-weight: 700; }
.hero__badge-label { font-size: .55rem; font-weight: 700; text-align: center; line-height: 1.2; color: rgba(255,255,255,.85); }

.hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.25); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.hero__scroll-wheel { width: 3px; height: 8px; background: var(--teal-light); border-radius: 2px; animation: scrollBounce 1.8s ease-in-out infinite; }

@media (max-width: 1023px) { .hero__visual { display: none; } .hero__scroll { display: none; } }

/* TRUST BAR */
.trust-bar { background: linear-gradient(135deg, var(--mid) 0%, #0F2A26 100%); padding: 1rem 0; }
.trust-bar__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 3rem; }
.trust-bar__item { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.9); font-size: .84rem; font-weight: 600; }
.trust-bar__item svg { color: var(--teal-light); flex-shrink: 0; }

/* STATS */
.stats-section { padding: 5rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat-item { text-align: center; padding: 2.5rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--gray-light); transition: var(--transition); }
.stat-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.8rem); color: var(--teal); line-height: 1; }
.stat-suffix { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--teal); }
.stat-label { display: block; font-size: .82rem; color: var(--gray); margin-top: .5rem; font-weight: 500; }

/* SERVICES */
.services__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
.service-card { background: var(--white); border: 1px solid var(--gray-light); border-top: 3px solid var(--teal); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 2.25rem 2rem 2rem; display: flex; flex-direction: column; gap: .75rem; transition: var(--transition); position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon { width: 52px; height: 52px; background: var(--teal-pale); border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; color: var(--teal); transition: var(--transition); }
.service-card:hover .service-card__icon { background: var(--teal); color: var(--white); transform: scale(1.08); }
.service-card__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--dark); }
.service-card__desc { font-size: .88rem; color: var(--gray); line-height: 1.7; flex: 1; }
.service-card__link { color: var(--teal); font-size: .84rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; transition: gap var(--transition); }
.service-card:hover .service-card__link { gap: .65rem; }

/* NOSOTROS */
.about-section { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.about__img-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; position: relative; }
.about__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.about__img-wrap:hover img { transform: scale(1.04); }
.about__img-badge { position: absolute; bottom: 1.5rem; left: 1.5rem; background: rgba(13,31,28,.92); backdrop-filter: blur(12px); color: var(--white-off); border-radius: var(--radius-pill); padding: .75rem 1.25rem; display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 500; border: 1px solid rgba(26,122,110,.3); }
.about__img-badge svg { color: var(--teal-light); flex-shrink: 0; }
.about__mini-card { margin-top: 1rem; background: var(--gray-light); border-radius: var(--radius-md); padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: .85rem; border: 1px solid rgba(26,122,110,.15); }
.about__mini-icon { width: 36px; height: 36px; background: rgba(26,122,110,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; }
.about__mini-card strong { font-family: var(--font-display); font-size: 1.1rem; display: block; color: var(--dark); }
.about__mini-card span { font-size: .75rem; color: var(--gray); }
.about__features { display: flex; flex-direction: column; gap: 1.25rem; }
.about__feature { display: flex; align-items: flex-start; gap: 1rem; }
.about__feature-icon { width: 40px; height: 40px; background: var(--teal-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; margin-top: .1rem; }
.about__feature strong { display: block; font-size: .92rem; font-weight: 600; color: var(--dark); margin-bottom: .2rem; }
.about__feature span { font-size: .83rem; color: var(--gray); line-height: 1.5; }

/* TESTIMONIOS */
.testimonios__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
.testimonio { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius-md); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: var(--transition); position: relative; }
.testimonio::before { content: '"'; position: absolute; top: 1rem; right: 1.5rem; font-family: var(--font-display); font-size: 5rem; color: rgba(26,122,110,.08); line-height: 1; pointer-events: none; }
.testimonio:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(26,122,110,.2); }
.testimonio__stars { display: flex; gap: .25rem; color: #FBBF24; }
.testimonio__text { font-size: .9rem; color: var(--gray); line-height: 1.75; font-style: italic; flex: 1; }
.testimonio__author { display: flex; align-items: center; gap: .85rem; }
.testimonio__avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--navy)); color: var(--white); font-family: var(--font-display); font-size: .95rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testimonio__author strong { display: block; font-size: .88rem; color: var(--dark); font-weight: 600; }
.testimonio__author span { font-size: .75rem; color: var(--gray); }

/* CTA */
.cta-section { padding: 6rem 0; background: linear-gradient(135deg, var(--mid) 0%, var(--dark) 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(26,122,110,.2) 0%, transparent 60%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.cta-title { color: var(--white-off); }
.cta-title em { color: var(--teal-light); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* FOOTER */
footer { background: linear-gradient(160deg, #0A1A18 0%, #060E0D 100%); padding: 4rem 0 0; color: rgba(255,255,255,.5); position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(26,122,110,.1) 0%, transparent 70%); pointer-events: none; }
.footer__divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(26,122,110,.4), transparent); margin-bottom: 3rem; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; position: relative; z-index: 1; }
.footer__logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--white-off); display: inline-block; margin-bottom: .75rem; }
.footer__logo .accent { color: var(--teal-light); font-style: italic; }
.footer__brand p { font-size: .87rem; line-height: 1.7; }
.footer__social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer__social a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); transform: translateY(-2px); }
.footer__col-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--white-off); margin-bottom: 1.1rem; }
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a { font-size: .87rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--teal-light); }
.footer__contact-item { display: flex; align-items: center; gap: .6rem; font-size: .87rem; margin-bottom: .65rem; }
.footer__bottom { background: rgba(0,0,0,.3); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; font-size: .78rem; text-align: center; position: relative; z-index: 1; }

/* RESPONSIVE */
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: inline-flex; }
  .navbar__burger { display: none; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; padding: 1rem 0; }
  .hero__visual { display: block; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .testimonios__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}