/*
Theme Name: EPI Avalúos Landing
Theme URI: https://epiavaluos.com/
Author: Printhink / Custom
Description: Landing page corporativa ligera para EPI Avalúos. Sin page builder ni plugins obligatorios.
Version: 1.0.0
Text Domain: epi-avaluos
*/

:root{
  --epi-green:#47b049;
  --epi-green-dark:#1D4D3A;
  --epi-navy:#344267;
  --epi-ivory:#FAF8F3;
  --epi-sage:#E4EEE7;
  --epi-sand:#D8C9B5;
  --text:#1f2937;
  --muted:#667085;
  --white:#fff;
  --border:#e6e8eb;
  --shadow:0 16px 44px rgba(30,55,68,.12);
  --radius:22px;
  --container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:#fff;line-height:1.6}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
.container{width:min(var(--container),calc(100% - 40px));margin-inline:auto}
.section{padding:88px 0}
.section-kicker{margin:0 0 10px;color:var(--epi-green-dark);font-weight:800;text-transform:uppercase;letter-spacing:.13em;font-size:.78rem}
.section-title{margin:0;color:#102e3b;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,4vw,3.4rem);line-height:1.05;letter-spacing:-.03em}
.section-lead{max-width:760px;color:var(--muted);font-size:1.08rem;margin:18px 0 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:11px;padding:14px 20px;font-weight:800;border:1px solid transparent;transition:.2s ease;cursor:pointer}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--epi-green);color:#fff;box-shadow:0 10px 24px rgba(71,176,73,.22)}
.btn-primary:hover{background:#3a9c3d}
.btn-secondary{border-color:#123847;background:#fff;color:#123847}
.btn-secondary:hover{background:#f7faf8}
.tag{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.23);padding:8px 12px;border-radius:999px;color:#fff;font-weight:800;font-size:.82rem}

/* header */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(22,44,56,.08)}
.header-inner{height:78px;display:flex;align-items:center;gap:26px}
.brand{display:flex;align-items:center;margin-right:auto}
.brand img{width:155px;height:auto;max-height:62px;object-fit:contain}
.main-nav{display:flex;gap:24px;align-items:center;font-size:.92rem;font-weight:700;color:#2f4351}
.main-nav a:hover{color:var(--epi-green)}
.header-contact{display:flex;align-items:center;gap:14px;font-size:.86rem;font-weight:800;color:#213d48}
.mobile-toggle{display:none;border:0;background:transparent;font-size:1.7rem;color:#173d39;cursor:pointer}

/* hero */
.hero{
  position:relative;
  min-height:690px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#123a49;
}

/* Imagen + oscurecimiento general del lado izquierdo */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(
      90deg,
      rgba(8,37,44,.87) 0%,
      rgba(8,37,44,.74) 42%,
      rgba(8,37,44,.24) 70%,
      rgba(8,37,44,.08) 100%
    ),
    url('assets/images/hero-panama.webp') center/cover no-repeat;
}

/* Oscurecimiento localizado en esquina inferior derecha */
.hero::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:52%;
  height:62%;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(
      ellipse at 86% 78%,
      rgba(5,35,42,.82) 0%,
      rgba(5,35,42,.64) 28%,
      rgba(5,35,42,.34) 50%,
      rgba(5,35,42,.12) 66%,
      rgba(5,35,42,0) 82%
    );
}

/* Contenido principal */
.hero-content{
  position:relative;
  z-index:2;
  max-width:720px;
  padding:82px 0 120px;
  color:#fff;
}

.hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(3rem,6vw,5.6rem);
  line-height:.94;
  letter-spacing:-.045em;
  margin:22px 0 24px;
  font-weight:800;
}

.hero h1 span{
  color:#79d27b;
}

.hero p{
  font-size:1.15rem;
  max-width:650px;
  color:rgba(255,255,255,.89);
  margin:0 0 30px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero .btn-secondary{
  color:#fff;
  border-color:rgba(255,255,255,.72);
  background:rgba(255,255,255,.08);
}

/* Frase de la esquina */
.hero-note{
  position:absolute;
  right:6%;
  bottom:90px;
  z-index:3;
  color:#fff;
  font-family:cursive;
  font-size:1.45rem;
  transform:rotate(-7deg);
  max-width:240px;
  line-height:1.15;
  text-align:center;
  opacity:1;
  text-shadow:
    0 2px 5px rgba(0,0,0,.55),
    0 5px 16px rgba(0,0,0,.35);
}

/* metrics */
.metrics-wrap{position:relative;z-index:3;margin-top:-52px}
.metrics{background:#fff;border-radius:20px;box-shadow:var(--shadow);display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;border:1px solid rgba(25,58,70,.07)}
.metric{padding:26px 24px;display:flex;gap:14px;align-items:flex-start;border-right:1px solid var(--border)}
.metric:last-child{border-right:0}.metric-icon{width:42px;height:42px;border-radius:12px;background:var(--epi-sage);display:grid;place-items:center;color:var(--epi-green-dark);font-size:1.25rem;flex:0 0 42px}.metric strong{display:block;color:#133746;font-size:1rem;line-height:1.2}.metric span{color:var(--muted);font-size:.87rem;display:block;margin-top:5px}

/* services */
.services{background:linear-gradient(180deg,#fff 0%,#fbfbf8 100%)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:34px}
.section-head .section-lead{margin:0;max-width:460px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(42,61,72,.05);transition:.22s ease}.card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.card-media{height:205px;overflow:hidden}.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.card:hover .card-media img{transform:scale(1.04)}
.card-body{padding:22px}.card h3{margin:0 0 9px;color:#163847;font-size:1.16rem}.card p{margin:0;color:var(--muted);font-size:.94rem}.card-link{display:inline-flex;margin-top:16px;color:#329337;font-weight:800;font-size:.9rem}

/* about */
.about{background:var(--epi-ivory)}
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.about-copy .section-title{max-width:640px}.about-copy p{color:var(--muted);font-size:1.04rem}.check-list{display:grid;gap:13px;margin:26px 0 30px;padding:0;list-style:none}.check-list li{display:flex;gap:12px;align-items:flex-start}.check{width:23px;height:23px;border-radius:50%;background:var(--epi-green);color:#fff;display:grid;place-items:center;font-size:.76rem;flex:0 0 23px;margin-top:2px}.about-media{position:relative}.about-media img{
  border-radius:26px;
  width:100%;
  height:540px;
  object-fit:cover;

  /* Mueve el encuadre para centrar mejor al señor */
  object-position:25% center;

  box-shadow:var(--shadow);
}.experience-badge{position:absolute;left:-28px;bottom:30px;background:var(--epi-green-dark);color:#fff;border-radius:18px;padding:22px 24px;box-shadow:var(--shadow);max-width:220px}.experience-badge strong{display:block;font-family:Georgia,serif;font-size:2rem}.experience-badge span{font-size:.9rem;color:rgba(255,255,255,.82)}

/* team strip */
.team-strip{display:grid;grid-template-columns:1.25fr .75fr;min-height:440px;background:#0e4037}.team-image img{width:100%;height:100%;object-fit:cover}.team-copy{padding:55px 48px;color:#fff;display:flex;flex-direction:column;justify-content:center}.team-copy .section-kicker{color:#9fdfa2}.team-copy .section-title{color:#fff}.team-copy p{color:rgba(255,255,255,.8)}

/* method */
.method{background:#fff}.method-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:46px;counter-reset:step}.step{position:relative;padding:0 26px;border-right:1px solid var(--border)}.step:last-child{border-right:0}.step-number{width:58px;height:58px;border-radius:50%;background:var(--epi-sage);display:grid;place-items:center;color:var(--epi-green-dark);font-weight:900;font-size:1.25rem;margin-bottom:20px}.step h3{color:#143846;margin:0 0 8px}.step p{color:var(--muted);font-size:.93rem;margin:0}.step::after{content:"→";position:absolute;right:-10px;top:17px;color:#9fb6aa;font-size:1.4rem;background:#fff}.step:last-child::after{display:none}

/* quote */
.quote-band{background:linear-gradient(90deg,rgba(15,76,62,.97),rgba(34,88,76,.92)),url('assets/images/hero-panama.webp') center/cover;padding:62px 0;color:#fff}.quote-inner{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:40px}.quote-band blockquote{font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.4rem);line-height:1.06;margin:0}.quote-band p{margin:0;color:rgba(255,255,255,.82);font-size:1.05rem}

/* pricing */
.price-section{background:var(--epi-sage)}.price-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}.price-card,.calc-card{background:#fff;border-radius:22px;padding:34px;box-shadow:0 10px 30px rgba(22,66,52,.08)}.price-value{display:flex;align-items:baseline;gap:7px;margin:12px 0 8px}.price-value strong{font-family:Georgia,serif;font-size:3.6rem;color:var(--epi-green-dark)}.price-card p,.calc-card p{color:var(--muted)}.calc-example{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.calc-item{padding:16px;border-radius:14px;background:var(--epi-ivory)}.calc-item span{display:block;color:var(--muted);font-size:.8rem}.calc-item strong{color:#173b44;font-size:1.08rem}

/* contact */
.contact{background:#fff}.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:start}.contact-panel{background:#123f37;color:#fff;border-radius:24px;padding:38px}.contact-panel h2{font-family:Georgia,serif;font-size:2.5rem;line-height:1.05;margin:0 0 18px}.contact-panel p{color:rgba(255,255,255,.8)}.contact-list{display:grid;gap:14px;margin-top:25px}.contact-item{display:flex;gap:12px}.contact-item strong{display:block}.contact-item span{display:block;color:rgba(255,255,255,.7);font-size:.9rem}.form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:.86rem;font-weight:800;color:#294451}.field input,.field textarea,.field select{width:100%;border:1px solid #dfe4e6;border-radius:12px;padding:13px 14px;background:#fff;outline:0}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--epi-green);box-shadow:0 0 0 4px rgba(71,176,73,.1)}.field textarea{min-height:130px;resize:vertical}.hp{position:absolute!important;left:-9999px!important}.form-status{grid-column:1/-1;padding:12px 14px;border-radius:10px;font-weight:700}.form-status.success{background:#eaf7eb;color:#24692a}.form-status.error{background:#fff0f0;color:#8a2b2b}

/* footer */
.site-footer{background:#0f2f35;color:#dce7e5;padding:52px 0 28px}.footer-grid{display:grid;grid-template-columns:1.4fr .7fr .7fr 1fr;gap:36px}.footer-logo{width:155px;filter:brightness(0) invert(1);opacity:.96}.footer-grid h4{margin:0 0 12px;color:#fff}.footer-grid p,.footer-grid a{color:#b8ccca;font-size:.92rem}.footer-links{display:grid;gap:8px}.footer-bottom{margin-top:38px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;gap:20px;color:#91aaa7;font-size:.83rem}

/* floating whatsapp */
.wa-float{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:1100;

  width:58px;
  height:58px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:transparent;
  border-radius:50%;

  box-shadow:0 12px 28px rgba(0,0,0,.18);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.wa-float img{
  width:58px;
  height:58px;
  display:block;
  object-fit:contain;
}

.wa-float:hover{
  transform:translateY(-3px) scale(1.04);
  box-shadow:0 15px 32px rgba(0,0,0,.22);
}

@media(max-width:980px){
  .main-nav,.header-contact .desktop-contact{display:none}.mobile-toggle{display:block}.header-contact{margin-left:auto}.header-inner{height:70px}.brand img{width:135px}.main-nav.mobile-open{display:flex;position:absolute;left:0;right:0;top:70px;background:#fff;padding:22px 20px 26px;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--border);box-shadow:0 20px 30px rgba(20,40,45,.08)}
  .hero{min-height:620px}.hero-content{padding:70px 0 115px}.hero-note{display:none}.metrics{grid-template-columns:1fr 1fr}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--border)}
  .cards{grid-template-columns:1fr 1fr}.about-grid,.team-strip,.quote-inner,.price-grid,.contact-grid{grid-template-columns:1fr}.team-strip{display:grid}.team-image{height:420px}.method-grid{grid-template-columns:1fr 1fr;gap:28px}.step{border-right:0;border-bottom:1px solid var(--border);padding:0 0 26px}.step::after{display:none}.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .container{width:min(100% - 28px,var(--container))}.section{padding:66px 0}.hero{min-height:650px}.hero::before{background:linear-gradient(180deg,rgba(8,37,44,.62),rgba(8,37,44,.9) 72%),url('assets/images/hero-panama.webp') 57% center/cover no-repeat}.hero h1{font-size:clamp(2.75rem,13vw,4.2rem)}.hero p{font-size:1rem}.hero-actions{display:grid}.hero-actions .btn{width:100%}.metrics-wrap{margin-top:-35px}.metrics{grid-template-columns:1fr}.metric{border-right:0!important;border-bottom:1px solid var(--border)!important}.metric:last-child{border-bottom:0!important}.section-head{display:block}.section-head .section-lead{margin-top:16px}.cards{grid-template-columns:1fr}.about-grid{gap:32px}.about-media img{height:420px}.experience-badge{left:14px;right:14px;max-width:none}.team-image{height:320px}.team-copy{padding:42px 24px}.method-grid{grid-template-columns:1fr}.quote-band{padding:50px 0}.calc-example{grid-template-columns:1fr}.form{grid-template-columns:1fr}.field.full{grid-column:auto}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.contact-panel{padding:30px 24px}
}
.hero::after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:48%;
    height:55%;
    z-index:1;
    pointer-events:none;

    background:radial-gradient(
        ellipse at 82% 72%,
        rgba(4,39,37,.82) 0%,
        rgba(4,39,37,.68) 22%,
        rgba(4,39,37,.42) 40%,
        rgba(4,39,37,.20) 58%,
        rgba(4,39,37,0) 78%
    );
}
/* =========================================
   HERO CON FORMULARIO
========================================= */

.hero-grid{
  position:relative;
  z-index:3;

  display:grid;
  grid-template-columns:
    minmax(0,1.15fr)
    minmax(380px,.85fr);

  gap:55px;
  align-items:center;

  width:min(var(--container), calc(100% - 40px)) !important;
  margin-inline:auto !important;
}

.hero-grid .hero-content{
  position:relative;
  z-index:2;

  max-width:650px;
  padding:80px 0 120px;

  color:#fff;
}


/* FORM CARD */

.hero-form-card{
  width:100%;
  max-width:420px;

  justify-self:end;

  background:rgba(255,255,255,.97);

  padding:28px;

  border-radius:22px;

  box-shadow:
    0 25px 60px rgba(0,0,0,.23);

  backdrop-filter:blur(10px);
}


/* CABECERA */

.hero-form-header{
  text-align:center;
  margin-bottom:22px;
}

.hero-form-kicker{
  display:block;

  font-size:.73rem;
  font-weight:900;

  letter-spacing:.14em;

  color:var(--epi-green-dark);

  margin-bottom:8px;
}

.hero-form-price{
  font-family:Georgia,"Times New Roman",serif;

  color:#123847;

  font-size:3.4rem;

  font-weight:800;

  line-height:1;
}

.hero-form-price small{
  font-family:Inter,Arial,sans-serif;

  font-size:.95rem;

  color:var(--epi-green-dark);

  font-weight:800;
}

.hero-form-property{
  margin:9px 0 0!important;

  color:#405761!important;

  font-size:.95rem!important;
}


/* CAMPOS */

.hero-lead-form{
  display:grid;
  gap:12px;
}

.hero-field{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.hero-field label{
  color:#27424d;

  font-size:.78rem;

  font-weight:800;
}

.hero-field input{
  width:100%;

  padding:13px 14px;

  border:1px solid #dce4e2;

  border-radius:10px;

  background:#f9fbfa;

  color:#193641;

  outline:none;

  transition:.2s ease;
}

.hero-field input:focus{
  border-color:var(--epi-green);

  background:#fff;

  box-shadow:
    0 0 0 4px rgba(71,176,73,.12);
}


/* BOTÓN */

.hero-submit{
  width:100%;

  margin-top:5px;

  padding:15px 18px;

  border:0;

  border-radius:11px;

  background:var(--epi-green);

  color:#fff;

  font-weight:900;

  cursor:pointer;

  transition:.2s ease;
}

.hero-submit:hover{
  background:#399d3c;

  transform:translateY(-2px);
}


/* NOTA */

.hero-form-disclaimer{
  margin:14px 0 0!important;

  font-size:.73rem!important;

  line-height:1.45!important;

  text-align:center;

  color:#74848a!important;
}


/* TABLET */

@media(max-width:980px){

  .hero-grid{
    grid-template-columns:1fr;
    gap:25px;

    padding:55px 0 90px;
  }

  .hero-grid .hero-content{
    padding:0;
  }

  .hero-form-card{
    justify-self:start;

    max-width:520px;
  }

}


/* MOBILE */

@media(max-width:640px){

  .hero-grid{
    padding:45px 0 70px;
  }

  .hero-form-card{
    max-width:none;

    padding:24px 20px;

    border-radius:18px;
  }

  .hero-form-price{
    font-size:2.8rem;
  }

}
/* =========================================
   ANIMACIONES EPI AVALÚOS
========================================= */

/* 1. Entrada del banner */

@keyframes epiEntrada {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Primero aparece el texto */

.hero-content {
  animation: epiEntrada .85s ease-out both;
}

/* Después aparece el formulario */

.hero-form-card {
  animation: epiEntrada .85s ease-out .2s both;
}


/* 2. Aparición al hacer scroll */

.epi-reveal {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2,.7,.3,1);

  transition-delay: var(--epi-delay, 0ms);
}

.epi-reveal.epi-visible {
  opacity: 1;
  transform: translateY(0);
}


/* 3. Animación de tarjetas */

.card.epi-reveal.epi-visible:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(22,66,52,.15);
}


/* 4. Animación de botones */

.hero-submit,
.btn {
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background-color .25s ease;
}

.hero-submit:hover,
.btn:hover {
  transform: translateY(-3px);
}


/* Accesibilidad: reducir movimiento */

@media (prefers-reduced-motion: reduce) {

  .hero-content,
  .hero-form-card {
    animation: none !important;
  }

  .epi-reveal,
  .epi-reveal.epi-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-submit:hover,
  .btn:hover {
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
/* AJUSTES SOLICITADOS EPI */

/* Título principal */
.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
}

/* Encabezado del formulario */
.hero-form-kicker {
  font-size: .85rem;
  letter-spacing: .08em;
  font-weight: 900;
}

/* Texto referencial */
.hero-form-property {
  font-size: .78rem !important;
  line-height: 1.45;
  margin-top: 12px !important;
}

/* Teléfonos del encabezado */
.desktop-contact {
  white-space: nowrap;
  font-size: .82rem;
}

/* Ajuste para teléfonos móviles */
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }
}
/* =========================================
   CORRECCIÓN BLOQUE NOSOTROS / ING. BELUCHE
========================================= */


/* Columna completa de la derecha */
.about-media{
  display:flex;
  flex-direction:column;
  position:relative;
}


/* IMPORTANTE:
   ahora la tarjeta 25 años toma como referencia
   únicamente la fotografía
*/
.about-photo-wrap{
  position:relative;
  width:100%;
}


/* FOTO */
.about-photo-wrap img{
  display:block;

  width:100%;
  height:540px;

  object-fit:cover;
  object-position:30% center;

  border-radius:26px;

  box-shadow:var(--shadow);
}


/* =========================================
   BADGE 25 AÑOS
========================================= */

.about-photo-wrap .experience-badge{
  position:absolute;

  left:-28px;
  bottom:30px;

  z-index:3;
}


/* =========================================
   INFORMACIÓN DEL ING. JORGE BELUCHE
========================================= */

.engineer-profile-bar{
  position:relative;
  z-index:2;

  width:100%;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  margin-top:18px;

  padding:18px 20px;

  background:#fff;

  border:1px solid rgba(29,77,58,.12);
  border-radius:14px;

  box-shadow:
    0 8px 25px rgba(20,55,48,.07);
}


.engineer-profile-info{
  flex:1;
  min-width:0;
}


.engineer-profile-label{
  display:block;

  margin-bottom:5px;

  color:var(--epi-green);

  font-size:.65rem;
  line-height:1.3;

  font-weight:900;

  letter-spacing:.1em;
}


.engineer-profile-info h3{
  margin:0 0 4px;

  font-family:Georgia,"Times New Roman",serif;

  font-size:1.3rem;
  line-height:1.15;

  color:#123847;
}


.engineer-profile-info p{
  margin:0 !important;

  color:#687980;

  font-size:.80rem;
  line-height:1.45;
}


/* =========================================
   BOTÓN CURRÍCULUM
========================================= */

.cv-open{
  flex-shrink:0;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:11px 16px;

  border:1px solid var(--epi-green);
  border-radius:9px;

  background:#fff;
  color:var(--epi-green-dark);

  font-size:.78rem;
  font-weight:800;

  white-space:nowrap;

  cursor:pointer;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}


.cv-open:hover{
  background:var(--epi-green);
  color:#fff;

  transform:translateY(-2px);

  box-shadow:
    0 8px 20px rgba(71,176,73,.18);
}


/* =========================================
   TABLET
========================================= */

@media(max-width:980px){

  .about-photo-wrap .experience-badge{
    left:20px;
    bottom:20px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media(max-width:640px){

  .about-photo-wrap img{
    height:440px;
    object-position:30% center;
  }

  .about-photo-wrap .experience-badge{
    left:15px;
    bottom:15px;
  }

  .engineer-profile-bar{
    flex-direction:column;
    align-items:flex-start;

    gap:14px;

    padding:17px;
  }

  .cv-open{
    width:100%;
  }

}
/* =========================================
   MODAL CURRÍCULUM ING. JORGE BELUCHE
========================================= */

.cv-modal{
  position:fixed;
  inset:0;

  z-index:99999;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:30px;

  opacity:0;
  visibility:hidden;
  pointer-events:none;

  transition:
    opacity .25s ease,
    visibility .25s ease;
}


/* Cuando está abierto */

.cv-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}


/* Fondo oscuro */

.cv-modal-overlay{
  position:absolute;
  inset:0;

  background:rgba(9,36,39,.78);

  backdrop-filter:blur(5px);
}


/* Ventana */

.cv-modal-panel{
  position:relative;
  z-index:2;

  width:min(900px,100%);

  max-height:88vh;
  overflow-y:auto;

  padding:45px 48px;

  background:#fff;

  border-radius:24px;

  box-shadow:
    0 30px 90px rgba(0,0,0,.30);

  transform:translateY(25px) scale(.98);

  transition:
    transform .3s cubic-bezier(.2,.7,.3,1);
}


.cv-modal.is-open .cv-modal-panel{
  transform:translateY(0) scale(1);
}


/* Botón cerrar */

.cv-modal-close{
  position:absolute;

  top:18px;
  right:20px;

  width:42px;
  height:42px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:0;
  border-radius:50%;

  background:#e8f1ea;
  color:#18583f;

  font-size:1.8rem;
  line-height:1;

  cursor:pointer;

  transition:.2s ease;
}


.cv-modal-close:hover{
  background:var(--epi-green);
  color:#fff;

  transform:rotate(5deg);
}


/* Encabezado */

.cv-modal-heading{
  padding-right:60px;
  margin-bottom:32px;
}


.cv-modal-heading h2{
  margin:6px 0 8px;

  font-family:Georgia,"Times New Roman",serif;

  font-size:clamp(2.2rem,5vw,3.5rem);
  line-height:1;

  color:#123847;
}


.cv-modal-heading p{
  margin:0;

  color:#687980;

  font-size:.95rem;
}


/* Contenido */

.cv-modal-content{
  display:grid;
}


.cv-item{
  display:grid;

  grid-template-columns:65px 1fr;

  gap:20px;

  padding:24px 0;

  border-top:1px solid #e1e9e5;
}


.cv-item-number{
  font-family:Georgia,"Times New Roman",serif;

  font-size:1.8rem;
  font-weight:700;

  color:var(--epi-green);
}


.cv-item h3{
  margin:0 0 8px;

  font-family:Georgia,"Times New Roman",serif;

  color:#153b46;

  font-size:1.2rem;
}


.cv-item p{
  margin:5px 0;

  color:#60737b;

  line-height:1.65;
}


/* Método Beluche destacado */

.cv-item-featured{
  margin-top:12px;

  padding:26px;

  border:0;
  border-radius:18px;

  background:#e8f1ea;
}


.cv-featured-label{
  display:block;

  margin-bottom:5px;

  color:var(--epi-green);

  font-size:.65rem;
  font-weight:900;

  letter-spacing:.12em;
}


/* Móvil */

@media(max-width:640px){

  .cv-modal{
    padding:12px;
  }

  .cv-modal-panel{
    padding:34px 22px 28px;

    border-radius:18px;

    max-height:92vh;
  }

  .cv-modal-heading{
    padding-right:35px;
  }

  .cv-item{
    grid-template-columns:38px 1fr;

    gap:10px;

    padding:20px 0;
  }

  .cv-item-number{
    font-size:1.35rem;
  }

  .cv-item-featured{
    padding:20px 16px;
  }

}
/* =========================================
   CORRECCIÓN ALTURA HERO + FORMULARIO
========================================= */

@media (min-width:981px){

  .hero{
    min-height:820px;
    align-items:flex-start;
    overflow:hidden;
  }

  .hero-grid{
    align-items:start;

    padding-top:42px;
    padding-bottom:110px;
  }

  .hero-grid .hero-content{
    padding:55px 0 0;
  }

  .hero-form-card{
    align-self:start;
    margin-top:0;
  }

}
@media (min-width:981px){

  .hero-form-card{
    padding:24px 28px;
  }

  .hero-lead-form{
    gap:10px;
  }

  .hero-field input{
    padding:11px 14px;
  }

  .hero-form-header{
    margin-bottom:18px;
  }

  .hero-form-disclaimer{
    margin-top:10px !important;
  }

}
/* =========================================
   FOOTER INFERIOR
========================================= */

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  margin-top:30px;
  padding-top:18px;

  border-top:1px solid rgba(255,255,255,.15);

  font-size:.78rem;
  color:rgba(255,255,255,.72);
}

.footer-bottom p{
  margin:0;
}

.footer-bottom strong{
  color:#fff;
  font-weight:800;
}

@media(max-width:640px){

  .footer-bottom{
    flex-direction:column;
    text-align:center;
    gap:6px;
  }

}