/* =========================================================
   Nemesys Corp · estilos (look and feel corporativo clásico)
   Marca: verde #378541 · azul marino #16375F
   ========================================================= */

:root {
  --green: #378541;
  --green-dark: #2C6A34;
  --green-light: #E9F3EA;
  --navy: #16375F;
  --navy-deep: #0F2743;
  --text: #4A4F57;
  --heading: #1F2933;
  --gray: #F5F6F8;
  --line: #E4E7EB;
  --white: #FFFFFF;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --container: 1140px;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(22, 55, 95, 0.10);
  --shadow-hover: 0 14px 34px rgba(22, 55, 95, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.25; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(var(--container), 100% - 2.5rem); margin: 0 auto; }
.ico-inline { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }

/* ---------- botones ---------- */
.btn { display: inline-block; padding: 0.75rem 1.7rem; border-radius: 40px; font-family: var(--font-head); font-weight: 600; font-size: 0.93rem; letter-spacing: 0.02em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: all 0.25s; }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(55,133,65,0.3); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- barra superior ---------- */
.topbar { background: var(--navy-deep); color: #C9D3E0; font-size: 0.85rem; }
.topbar-wrap { display: flex; gap: 1.8rem; padding: 0.4rem 0; }
.topbar a { color: #E6ECF3; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

.lang-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; }
.lang-switch button { background: none; border: 0; color: #C9D3E0; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; cursor: pointer; padding: 0.1rem 0.2rem; }
.lang-switch button.is-active { color: var(--white); border-bottom: 2px solid var(--green); }
.lang-switch button:hover { color: var(--white); }

/* ---------- navegación ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; }
.brand-logo { height: 50px; width: auto; }
.site-nav { display: flex; gap: 0.2rem; }
.site-nav a { font-family: var(--font-head); font-weight: 500; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--heading); text-decoration: none; padding: 0.6rem 0.8rem; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--green); border-bottom-color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- slider de inicio ---------- */
.hero-slider { position: relative; min-height: 560px; color: var(--white); overflow: hidden;
  background:
    radial-gradient(circle at 78% 40%, rgba(55,133,65,0.35) 0, rgba(55,133,65,0) 38%),
    radial-gradient(rgba(255,255,255,0.10) 1.4px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 60%, #1E4A7A 100%);
}
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; position: relative; }
.slide-inner { padding: 5rem 0; max-width: 760px; }
.slide h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.slide p { font-size: 1.15rem; color: #DCE5F0; max-width: 58ch; margin-bottom: 1.8rem; }
.slide-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.14); color: var(--white); border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: background 0.2s; z-index: 2; }
.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 18px; } .slider-arrow.next { right: 18px; }
.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); cursor: pointer; padding: 0; }
.slider-dots button.is-active { background: var(--green); width: 28px; border-radius: 6px; }

/* ---------- secciones y encabezados ---------- */
.section { padding: 5rem 0; }
.section-gray { background: var(--gray); }
.section-dark { background: var(--navy); color: #D6DEE8; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--text); }
.section-head-light h2 { color: var(--white); }
.section-head-light p { color: #C9D3E0; }
.title-bar { display: block; width: 60px; height: 4px; background: var(--green); border-radius: 2px; margin: 0.6rem auto 1.2rem; }
.subtitle { color: var(--green); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 0.4rem; }

/* ---------- acerca de ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: center; }
.about-frame { background: var(--green-light); border-radius: 14px; padding: 2.5rem; display: flex; justify-content: center; position: relative; }
.about-frame::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(55,133,65,0.35); border-radius: 10px; pointer-events: none; }
.about-wing { width: min(100%, 300px); }
.about-copy h2 { margin-bottom: 1rem; }
.about-copy .btn { margin-top: 0.6rem; }

/* ---------- banda de diferenciadores ---------- */
.highlights { background: var(--green); color: var(--white); padding: 2.6rem 0; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.highlight .ico { width: 44px; height: 44px; margin: 0 auto 0.6rem; color: var(--white); }
.highlight h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.2rem; }
.highlight p { margin: 0; color: #E4F1E5; font-size: 0.93rem; }

/* ---------- servicios (cards con ícono) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 2.2rem 1.8rem; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; border-top: 4px solid transparent; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top-color: var(--green); }
.card-featured { border-top-color: var(--green); }
.card-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.card-icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.96rem; }
.link-more { background: none; border: 0; padding: 0; color: var(--green); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.link-more::after { content: " \203A"; }
.link-more[aria-expanded="true"]::after { content: " \2039"; }
.card-detail { display: none; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.card-detail.open { display: block; }
.card-detail dt { color: var(--green); font-weight: 600; font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.7rem; }
.card-detail dd { margin: 0.15rem 0 0; }
.card-cta { background: var(--navy); color: #D6DEE8; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border-top-color: var(--navy); }
.card-cta:hover { border-top-color: var(--green); }
.card-cta h3 { color: var(--white); }

/* ---------- metodología ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; counter-reset: paso; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; margin-bottom: 1rem; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; font-size: 0.95rem; }

/* ---------- trayectoria ---------- */
.tray-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.tray-story p { color: #D6DEE8; }
.tray-quote { font-family: var(--font-head); font-weight: 500; color: var(--white) !important; border-left: 3px solid var(--green); padding-left: 1rem; margin-top: 1.4rem; }
.tray-side { display: grid; gap: 1.4rem; }
.cred p { margin: 0.8rem 0 0; font-size: 0.94rem; color: #D6DEE8; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.cred { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 1.6rem; }
.cred h3 { color: var(--white); font-size: 1.05rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--green); display: inline-block; }
.cred ul { margin: 0.8rem 0 0; padding-left: 1.1em; font-size: 0.94rem; }
.cred li { margin-bottom: 0.5rem; }

/* ---------- modelos (estilo tabla de planes) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; align-items: stretch; }
.plan { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 0 1.8rem; display: flex; flex-direction: column; overflow: hidden; }
.plan-head { background: var(--navy); color: var(--white); padding: 1.4rem 1.4rem 1.2rem; text-align: center; }
.plan-head h3 { color: var(--white); font-size: 1.05rem; margin: 0; }
.plan-featured .plan-head { background: var(--green); }
.plan-tag { display: inline-block; margin-top: 0.5rem; background: rgba(255,255,255,0.2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.15rem 0.6rem; border-radius: 20px; }
.plan ul { list-style: none; padding: 1.4rem 1.4rem 0.6rem; margin: 0; flex: 1; font-size: 0.93rem; }
.plan li { padding: 0.5rem 0 0.5rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan li:last-child { border-bottom: 0; }
.plan .btn { margin: 0.8rem 1.4rem 0; text-align: center; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; }
.info-icon svg { width: 26px; height: 26px; }
.info-label { margin: 0; font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); font-weight: 600; }
.info-value { margin: 0.1rem 0 0; font-weight: 600; color: var(--heading); text-decoration: none; font-size: 1.05rem; }
a.info-value:hover { color: var(--green); }
.info-sub { font-weight: 400; color: var(--text); font-size: 0.92rem; }
.map-wrap { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; }
.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--heading); }
.field input, .field textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid #CFD5DC; border-radius: 6px; font-family: var(--font-body); font-size: 1rem; color: var(--heading); background: var(--gray); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(55,133,65,0.18); }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green-dark); }
.form-status.error { color: #B3261E; }
.form-note { font-size: 0.9rem; margin: 0.5rem 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #C9D3E0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-logo { height: 46px; width: auto; margin-bottom: 1rem; }
.footer-col p { font-size: 0.93rem; }
.footer-col h4 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; position: relative; padding-bottom: 0.5rem; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--green); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: 0.93rem; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: #C9D3E0; text-decoration: none; }
.footer-links a:hover { color: var(--white); padding-left: 4px; transition: padding 0.2s; }
.footer-contact a { color: var(--white); font-weight: 600; text-decoration: none; font-size: 1.02rem; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.86rem; }
.footer-bottom-wrap { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--white); text-decoration: none; font-weight: 700; }
.to-top:hover { background: var(--green-dark); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .cred-grid, .plans, .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a.active { border-bottom-color: var(--line); background: var(--green-light); }
  .about-grid, .contact-grid, .tray-grid { grid-template-columns: 1fr; }
  .about-wing { width: min(70%, 260px); }
  .hero-slider { min-height: 480px; }
  .slide-inner { padding: 4rem 0; }
  .slider-arrow { display: none; }
}
@media (max-width: 600px) {
  .topbar-wrap { flex-direction: column; gap: 0.15rem; align-items: center; text-align: center; }
  .lang-switch { margin-left: 0; }
  .brand-logo { height: 40px; }
  .section { padding: 3.5rem 0; }
  .cards, .steps, .cred-grid, .plans, .highlights-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .card { padding: 1.8rem 1.4rem; }
  .footer-bottom-wrap { flex-direction: column; gap: 0.8rem; }
}
