/* TORREFUERTE 2026 – Versión refinada
   Verde petróleo sobrio · Azul profundo · Naranja cálido · Gris acero */

:root {
  --navy: #0A1628;
  --navy-mid: #132337;
  --green: #0C5C56;          /* petróleo / esmeralda sobrio */
  --green-dark: #094A45;
  --green-light: #0E7A72;
  --accent: #E67E22;         /* naranja cálido */
  --accent-dark: #D35400;
  --black: #0F172A;
  --steel: #475569;          /* gris acero */
  --steel-light: #94A3B8;
  --gray-bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --max-width: 1120px;
  --header-h: 92px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --shadow: 0 12px 40px -12px rgba(10, 22, 40, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.68;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 1000; padding: 0 32px;
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 0.93rem; font-weight: 500; color: var(--black); }
.nav a:hover { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; background: var(--accent); color: #fff !important;
  font-weight: 600; font-size: 0.93rem; border-radius: 9px; border: none;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.28);
}
.btn:hover {
  background: var(--accent-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.35);
}
.btn-green {
  background: var(--green); color: #fff !important;
  box-shadow: 0 4px 16px rgba(12, 92, 86, 0.28);
}
.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 24px rgba(12, 92, 86, 0.35);
}
.btn-outline {
  background: transparent; color: var(--navy) !important;
  border: 2px solid var(--navy); box-shadow: none;
}
.btn-outline:hover { background: var(--navy); color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 6px; cursor: pointer;
  padding: 8px; z-index: 1001; background: none; border: none;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px; background: var(--navy);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; top: 0; right: -100%; width: 300px; max-width: 85vw; height: 100vh;
  background: var(--white); box-shadow: -14px 0 40px rgba(0,0,0,0.1);
  padding: 120px 32px 40px; display: flex; flex-direction: column; gap: 22px;
  transition: right 0.35s ease; z-index: 999; overflow-y: auto;
}
.nav-mobile.active { right: 0; }
.nav-mobile a { font-size: 1.08rem; font-weight: 500; color: var(--black); padding: 4px 0; }
.nav-mobile a:hover { color: var(--green); }
.nav-mobile .btn { margin-top: 14px; width: 100%; text-align: center; }

.overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,0.48);
  opacity: 0; visibility: hidden; transition: var(--transition); z-index: 998;
}
.overlay.active { opacity: 1; visibility: visible; }

/* ===== HERO ===== */
.hero {
  padding: 170px 32px 120px;
  background: linear-gradient(155deg, #0A1628 0%, #132337 50%, #0C5C56 145%);
  color: var(--white); text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 15%, rgba(14,122,114,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.6rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.14; margin-bottom: 24px; position: relative;
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.84); max-width: 600px;
  margin: 0 auto 42px; position: relative; line-height: 1.65;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative;
}

/* ===== SECTIONS ===== */
.section { padding: 120px 32px; max-width: var(--max-width); margin: 0 auto; }
.section-alt { background: var(--gray-bg); max-width: 100%; padding: 120px 32px; }
.section-alt .section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.1rem); font-weight: 700;
  letter-spacing: -0.6px; margin-bottom: 16px; color: var(--navy);
}
.section-subtitle {
  color: var(--steel); margin-bottom: 56px; max-width: 560px;
  font-size: 1.05rem; line-height: 1.7;
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.3px; color: var(--green);
  margin-bottom: 14px;
}

/* ===== CARDS ===== */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px;
}
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 32px; transition: var(--transition); position: relative; overflow: hidden;
}
.card:hover {
  border-color: var(--green-light); box-shadow: var(--shadow); transform: translateY(-6px);
}
.card.featured {
  border-color: var(--green); box-shadow: 0 10px 36px rgba(12, 92, 86, 0.12);
}
.card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--green);
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; color: var(--navy); }
.card p { color: var(--steel); font-size: 0.96rem; margin-bottom: 24px; line-height: 1.65; }
.card a { color: var(--green); font-weight: 600; font-size: 0.93rem; }
.card a:hover { color: var(--green-dark); text-decoration: underline; }

/* ===== GALLERY ===== */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 24px;
}
.gallery img {
  width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius);
  transition: var(--transition);
}
.gallery img:hover { transform: scale(1.025); box-shadow: var(--shadow); }

/* ===== LISTS ===== */
.service-list { list-style: none; display: grid; gap: 12px; }
.service-list li {
  padding: 18px 22px; background: var(--gray-bg); border-radius: 9px;
  font-size: 0.97rem; line-height: 1.55; border-left: 3px solid var(--green);
  color: var(--black);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-info p { margin-bottom: 14px; color: var(--steel); }
.contact-info strong { color: var(--navy); display: block; margin-bottom: 3px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 500; margin-bottom: 7px; font-size: 0.9rem; color: var(--navy);
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 1rem; transition: var(--transition); font-family: inherit; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(12, 92, 86, 0.12);
}
.map-wrap {
  margin-top: 52px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); height: 350px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy); color: var(--steel-light);
  padding: 72px 32px 48px; text-align: center; font-size: 0.9rem;
}
.footer a { color: #CBD5E1; }
.footer a:hover { color: #5EEAD4; }
.footer-logo {
  font-weight: 700; font-size: 1.25rem; color: var(--white);
  margin-bottom: 18px; letter-spacing: -0.3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --header-h: 78px; }
  .hero { padding: 145px 24px 95px; }
  .section, .section-alt { padding: 88px 24px; }
  .logo img { height: 48px; }
  .gallery img { height: 185px; }
}
