/* =========================================================
   TRL+ - Rediseño institucional
   HTML/CSS/JS puro. Pensado para Live Server y Hostinger.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Roboto+Condensed:wght@300;400;500;600;700&display=swap');

:root{
  --brown-950:#22150d;
  --brown-900:#342015;
  --brown-800:#4a2d1c;
  --brown-700:#6f431f;
  --gold-500:#c9964a;
  --gold-300:#e2bf7a;
  --cream-100:#fbf7ef;
  --cream-200:#f3eadb;
  --cream-300:#e5d2b8;
  --ink:#2b2621;
  --muted:#6f6257;
  --white:#ffffff;
  --shadow:0 18px 50px rgba(35,21,13,.12);
  --radius:22px;
  --container:1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Roboto Condensed", Arial, sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg, var(--cream-100), var(--cream-200));
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }

/* ================= HEADER / NAV ================= */
.site-header{
  position:sticky;
  top:0;
  z-index:200;
  background:rgba(34,21,13,.94);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.topnav{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo{ display:flex; align-items:center; flex:0 0 auto; text-decoration:none; }
.logoImg{ width:185px; max-height:72px; object-fit:contain; }
.menu-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.06);
  color:var(--white);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  font:600 14px/1 "Roboto Condensed", sans-serif;
  letter-spacing:.08em;
}
.menu-toggle span{
  display:block;
  width:26px;
  height:2px;
  background:var(--white);
  margin:5px 0;
  border-radius:10px;
  transition:transform .2s ease, opacity .2s ease;
}
.indice_menu{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
}
.indice_link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 13px;
  text-decoration:none;
  color:rgba(255,255,255,.86);
  border-radius:999px;
  font-size:clamp(.86rem, .92vw, 1rem);
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  position:relative;
  transition:background .18s ease, color .18s ease, transform .18s ease;
  white-space:nowrap;
}
.indice_link:hover,
.indice_link:focus-visible,
.indice_link.active{
  background:rgba(226,191,122,.16);
  color:var(--gold-300);
  outline:none;
}
.indice_link:hover{ transform:translateY(-1px); }

/* ================= LAYOUT GENERAL ================= */
main{ min-height:calc(100vh - 190px); }
.container{ width:min(var(--container), calc(100% - 32px)); margin:0 auto; }
.section{ padding:76px 0; }
.section.compact{ padding-top:54px; }
.page-hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(34,21,13,.94), rgba(78,48,26,.88)),
    url('imagenes/escritorio-fondo-inicio.jpeg') center/cover no-repeat;
  color:var(--white);
}
.page-hero::after{
  content:"";
  position:absolute;
  inset:auto -10% -35% auto;
  width:420px;
  height:420px;
  background:radial-gradient(circle, rgba(226,191,122,.23), transparent 65%);
  pointer-events:none;
}
.page-hero .container{
  position:relative;
  z-index:1;
  padding:72px 0 70px;
}
.eyebrow{
  margin:0 0 14px;
  color:var(--gold-300);
  font-size:.95rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
h1,h2,h3{ font-family:"Playfair Display", Georgia, serif; color:var(--brown-950); line-height:1.08; }
.page-hero h1,
.home-hero h1{ color:var(--white); }
h1{ margin:0; font-size:clamp(2.25rem, 5vw, 4.9rem); }
h2{ margin:0 0 18px; font-size:clamp(1.8rem, 3vw, 2.7rem); }
h3{ margin:0 0 10px; font-size:1.35rem; }
p{ font-size:1.18rem; line-height:1.72; margin:0 0 18px; }
.lead{ max-width:760px; color:rgba(255,255,255,.88); font-size:clamp(1.15rem, 2vw, 1.45rem); margin-top:22px; }
.card{
  background:rgba(255,255,255,.82);
  border:1px solid rgba(111,67,31,.12);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:clamp(24px, 4vw, 46px);
}
.content-card{ margin-top:-36px; position:relative; z-index:2; }
.text-block{ max-width:900px; margin:0 auto; }
.text-block p{ color:#3a322b; }
.text-block strong{ color:var(--brown-900); }

/* ================= HOME ================= */
.home-hero{
  background:
    linear-gradient(120deg, rgba(34,21,13,.96) 0%, rgba(52,32,21,.92) 48%, rgba(111,67,31,.72) 100%),
    url('imagenes/escritorio-fondo-inicio.jpeg') center/cover no-repeat;
  color:var(--white);
}
.home-hero__grid{
  min-height:620px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:48px;
  padding:70px 0;
}
.home-hero__text{ max-width:720px; }
.home-hero__text p{ color:rgba(255,255,255,.88); font-size:1.35rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:30px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.05em;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--gold-300); color:var(--brown-950); box-shadow:0 14px 28px rgba(0,0,0,.22); }
.btn-secondary{ border:1px solid rgba(255,255,255,.32); color:var(--white); background:rgba(255,255,255,.07); }
.hero-panel{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:28px;
  padding:26px;
  box-shadow:0 20px 60px rgba(0,0,0,.22);
}
.hero-panel img{ width:100%; border-radius:22px; aspect-ratio:4/3; object-fit:cover; opacity:.88; }
.hero-panel__caption{ padding:20px 4px 0; color:rgba(255,255,255,.82); }
.stats-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; margin-top:-58px; position:relative; z-index:2; }
.stat-card{ background:var(--white); border-radius:20px; box-shadow:var(--shadow); padding:25px; border:1px solid rgba(111,67,31,.10); }
.stat-card strong{ display:block; color:var(--brown-800); font-family:"Playfair Display"; font-size:2.1rem; margin-bottom:8px; }
.stat-card span{ color:var(--muted); font-size:1.08rem; line-height:1.45; }
.feature-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:28px; }
.feature{ padding:28px; border-radius:20px; background:var(--white); border:1px solid rgba(111,67,31,.12); box-shadow:0 12px 30px rgba(35,21,13,.08); }
.feature p{ color:var(--muted); font-size:1.06rem; margin:0; }

/* ================= LISTAS / SERVICIOS ================= */
.clean-list{ padding:0; margin:24px 0 0; list-style:none; display:grid; gap:14px; }
.clean-list li{
  position:relative;
  padding:16px 18px 16px 46px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(111,67,31,.12);
  border-radius:16px;
  font-size:1.13rem;
  line-height:1.45;
}
.clean-list li::before{
  content:"";
  position:absolute;
  left:18px;
  top:22px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--gold-500);
}
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:26px 0; }
.service-item{ background:var(--white); border:1px solid rgba(111,67,31,.13); border-radius:18px; padding:18px; font-size:1.1rem; box-shadow:0 8px 22px rgba(35,21,13,.06); }

/* ================= EXPERIENCIA ================= */
.timeline{ display:grid; gap:18px; margin-top:26px; }
.timeline-item{ border-left:4px solid var(--gold-500); padding:20px 22px; background:rgba(255,255,255,.78); border-radius:0 18px 18px 0; box-shadow:0 10px 26px rgba(35,21,13,.06); }
.timeline-item h3{ margin-bottom:4px; }
.timeline-item .role{ color:var(--brown-700); font-weight:700; margin-bottom:10px; }
.timeline-item ul{ margin:10px 0 0; padding-left:20px; }
.timeline-item li{ margin:8px 0; font-size:1.05rem; line-height:1.5; }

/* ================= HONORARIOS ================= */
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:28px 0; }
.price-card{ background:var(--white); border-radius:20px; border:1px solid rgba(111,67,31,.14); padding:24px; box-shadow:0 12px 30px rgba(35,21,13,.08); }
.price-card.featured{ border-color:rgba(201,150,74,.65); box-shadow:0 18px 45px rgba(111,67,31,.16); }
.price-card h3{ text-transform:uppercase; letter-spacing:.04em; }
.price-card .qty{ color:var(--muted); font-size:1.05rem; margin-bottom:12px; }
.price-card .price{ color:var(--brown-800); font-size:1.75rem; font-weight:800; margin:0; }
.note{ color:var(--muted); font-size:1.05rem; }

/* ================= CONTACTO ================= */
.contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:26px; align-items:start; }
.contact-info{ display:grid; gap:16px; }
.info-box{ background:var(--white); border-radius:18px; padding:20px; border:1px solid rgba(111,67,31,.12); box-shadow:0 10px 26px rgba(35,21,13,.07); }
.info-box span{ display:block; color:var(--muted); font-size:.95rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px; }
.info-box a{ color:var(--brown-800); font-size:1.25rem; font-weight:700; text-decoration:none; }
.form-grid{ display:grid; gap:14px; }
.form-field{ width:100%; min-height:54px; border:1px solid rgba(111,67,31,.22); border-radius:15px; background:rgba(255,255,255,.9); padding:0 16px; font:500 1.05rem "Roboto Condensed", sans-serif; color:var(--ink); }
textarea.form-field{ min-height:170px; padding-top:15px; resize:vertical; }
.form-field:focus{ outline:3px solid rgba(201,150,74,.24); border-color:var(--gold-500); }
#envio{ border:0; cursor:pointer; width:max-content; }
#envio:disabled{ opacity:.65; cursor:not-allowed; transform:none; }
.formAlert{ display:none; padding:14px 16px; border-radius:15px; font-size:1.05rem; line-height:1.4; }
.formAlert.ok{ display:block; background:#eaf7ef; border:1px solid #bfe8cf; color:#1f6b3a; }
.formAlert.err{ display:block; background:#fdecec; border:1px solid #f0b8b8; color:#8a1f1f; }
.hp-field{ position:absolute; left:-9999px; opacity:0; height:0; width:0; }


/* ================= NOVEDADES ================= */
.news-intro{ max-width:820px; margin-bottom:28px; }
.news-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:22px; margin-top:26px; }
.news-card{
  overflow:hidden;
  background:var(--white);
  border:1px solid rgba(111,67,31,.13);
  border-radius:22px;
  box-shadow:0 12px 30px rgba(35,21,13,.08);
}
.linkedin-placeholder{
  min-height:210px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:28px;
  text-align:center;
  background:linear-gradient(135deg, rgba(34,21,13,.94), rgba(111,67,31,.82));
  color:var(--white);
}
.linkedin-placeholder span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(226,191,122,.18);
  color:var(--gold-300);
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.linkedin-placeholder strong{ font-family:"Playfair Display", Georgia, serif; font-size:1.65rem; line-height:1.1; }
.linkedin-placeholder small{ color:rgba(255,255,255,.76); font-size:1rem; }
.linkedin-placeholder iframe{ width:100%; min-height:360px; border:0; }
.news-card__body{ padding:24px; }
.news-date{
  margin:0 0 8px;
  color:var(--brown-700);
  font-size:.95rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.news-card__body p{ color:var(--muted); font-size:1.06rem; }
.btn-news{ background:var(--brown-900); color:var(--white); margin-top:6px; }
.btn-news:hover{ box-shadow:0 12px 24px rgba(35,21,13,.18); }

/* ================= FOOTER / FLOATING BUTTONS ================= */
footer{ background:var(--brown-950); color:rgba(255,255,255,.72); padding:38px 0; }
.footer-grid{ width:min(var(--container), calc(100% - 32px)); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.logoImgfoot{ width:170px; object-fit:contain; }
.footer-copy{ text-align:right; font-size:1rem; line-height:1.5; }
#wsp{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:300;
  width:62px;
  height:62px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#25d366;
  box-shadow:0 12px 28px rgba(0,0,0,.24);
  transition:transform .18s ease;
}
#wsp:hover{ transform:translateY(-2px) scale(1.03); }
#wsp img{ width:68%; height:68%; object-fit:contain; }
#btnVolverNav{
  position:fixed;
  right:26px;
  bottom:98px;
  z-index:299;
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--brown-900);
  border:1px solid rgba(255,255,255,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}
#btnVolverNav.mostrar{ opacity:1; pointer-events:auto; transform:translateY(0); }
#btnVolverNav img{ width:56%; height:56%; object-fit:contain; filter:brightness(0) invert(1); }

/* ================= RESPONSIVE ================= */
@media (max-width:980px){
  .menu-toggle{ display:block; }
  .topnav{ min-height:76px; flex-wrap:wrap; }
  .logoImg{ width:160px; }
  .indice_menu{
    display:none;
    width:100%;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:0 0 16px;
  }
  .indice_menu.open{ display:grid; }
  .indice_link{ width:100%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); white-space:normal; text-align:center; }
  .home-hero__grid{ grid-template-columns:1fr; min-height:auto; padding:54px 0; }
  .hero-panel{ display:none; }
  .stats-grid,.feature-grid,.services-grid,.pricing-grid,.contact-grid,.news-grid{ grid-template-columns:1fr; }
  .content-card{ margin-top:-24px; }
  .footer-grid{ flex-direction:column; text-align:center; }
  .footer-copy{ text-align:center; }
}
@media (max-width:560px){
  .topnav{ width:min(100% - 22px, var(--container)); }
  .indice_menu{ grid-template-columns:1fr; }
  .page-hero .container{ padding:48px 0; }
  h1{ font-size:2.25rem; }
  p{ font-size:1.05rem; }
  .section{ padding:46px 0; }
  .card{ padding:22px; border-radius:18px; }
  .stats-grid{ margin-top:-28px; }
  #wsp{ width:56px; height:56px; right:16px; bottom:16px; }
  #btnVolverNav{ right:18px; bottom:84px; }
}
