/* ══════════════════════════════════════════════════
   Navas Malaca 2025 S.L. — Styles
   ══════════════════════════════════════════════════ */

/* --- Design Tokens --- */
:root {
  --blue-900:  #0b1628;
  --blue-800:  #0f2140;
  --blue-600:  #1a5276;
  --blue-500:  #2196f3;
  --teal-500:  #00bcd4;
  --teal-400:  #26c6da;
  --teal-300:  #4dd0e1;

  --green-600: #2e7d32;
  --green-500: #43a047;
  --green-400: #66bb6a;
  --green-300: #a5d6a7;
  --green-100: #e8f5e9;

  --sand-100:  #faf8f5;
  --coral-400: #ff7043;

  --white:     #ffffff;
  --gray-50:   #f8f9fa;
  --gray-100:  #f1f3f5;
  --gray-200:  #e9ecef;
  --gray-400:  #adb5bd;
  --gray-600:  #6c757d;
  --gray-800:  #343a40;
  --gray-900:  #212529;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
  --container-max: 1200px;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}
.logo-bar {
  width: 4px;
  height: 36px;
  background: var(--teal-400);
  border-radius: 2px;
  display: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-top {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--white);
  transition: var(--transition);
}
.logo-bottom {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--teal-400);
  transition: var(--transition);
}
.navbar.scrolled .logo-top { color: var(--blue-900); }
.navbar.scrolled .logo-bottom { color: var(--teal-500); }

/* Nav links */
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--teal-400);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.navbar.scrolled .nav-links a { color: var(--gray-600); }
.navbar.scrolled .nav-links a:hover { color: var(--blue-900); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  color: var(--white);
}
.lang-toggle:hover { background: rgba(255,255,255,0.2); }
.navbar.scrolled .lang-toggle {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-800);
}
.lang-flag { font-size: 16px; line-height: 1; }
.lang-label { font-weight: 600; font-size: 12px; letter-spacing: 0.5px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--gray-800); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--blue-900);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,22,40,0.85) 0%, rgba(15,33,64,0.75) 40%, rgba(0,188,212,0.3) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 60px;
  max-width: 800px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal-400);
  color: var(--blue-900);
  border-color: var(--teal-400);
}
.btn-primary:hover {
  background: var(--teal-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38,198,218,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-full { width: 100%; }

/* Platform strip */
.hero-platforms {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  margin-top: 40px;
}
.platform-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.platform-strip span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ══════════════════════════════════════════════════
   SECTIONS (generic)
   ══════════════════════════════════════════════════ */
.section {
  padding: 100px 0;
}
.section-alt { background: var(--gray-50); }
.section-green { background: linear-gradient(135deg, var(--green-100), #f1f8e9); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}
.tag-green { color: var(--green-600); }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   SERVICES GRID
   ══════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-400);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--teal-500);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}
.services-banner {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 300px;
}
.services-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}
.services-cta {
  text-align: center;
  margin-top: 32px;
}
.services-cta p {
  font-size: 18px;
  font-weight: 500;
  color: var(--teal-500);
}

/* ══════════════════════════════════════════════════
   STATS & VALUES
   ══════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--teal-500);
  line-height: 1;
  display: inline;
}
.stat-prefix {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-400);
  display: inline;
}
.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 8px;
  font-weight: 500;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  text-align: center;
  padding: 24px;
}
.value-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.value-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.value-card p {
  font-size: 15px;
  color: var(--gray-600);
}

/* ══════════════════════════════════════════════════
   GREEN SERVICES
   ══════════════════════════════════════════════════ */
.green-banner {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 250px;
}
.green-banner img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
}
.green-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.green-card {
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(46,125,50,0.1);
  transition: var(--transition);
}
.green-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(46,125,50,0.1);
}
.green-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.green-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 10px;
}
.green-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .section-tag { display: block; text-align: left; }
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gray-900);
}
.about-text p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 16px;
}
.about-location {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.location-pin { font-size: 24px; }
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-800), var(--teal-500));
  min-height: 300px;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(38,198,218,0.15);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-disclaimer {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 12px;
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}
.contact-item a { color: var(--teal-500); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }
.contact-icon { font-size: 24px; }
.contact-map { border-radius: var(--radius); overflow: hidden; }

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-footer { margin-bottom: 16px; }
.footer-tagline { font-size: 14px; line-height: 1.6; }
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--teal-400); }
.footer-contact p { font-size: 14px; line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--teal-400); }

/* ══════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 20px 0;
}
.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-content p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}
.cookie-content a { color: var(--teal-500); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-outline-dark {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-dark:hover { background: var(--gray-50); border-color: var(--gray-400); }

@media (max-width: 768px) {
  .cookie-content { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .about-image { order: -1; min-height: 250px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: var(--gray-800) !important;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 16px;
  }
  .hamburger { display: flex; }

  .hero-content { padding: 100px 16px 40px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }
  .platform-strip { gap: 16px; }
  .platform-strip span { font-size: 11px; }

  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .green-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 36px; }
}
