/* ==========================================================================
   A&L INGENIERÍA Y GESTIÓN SOCIO AMBIENTAL LTDA.
   Diseño Minimalista — Paleta Oficial del Logo Corporativo
   Valdivia, Chile · 2026
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
  /* === PALETA DEL LOGO OFICIAL ===
     Azul Brújula Técnico + Rosa/Terracota Acuarela + Neutros Profundos */

  /* Fondos */
  --bg-dark: #0a0e17;
  --bg-dark-surface: #0f1523;
  --bg-dark-card: #141c2e;
  --bg-dark-hover: #1a2438;
  --bg-light: #f4f6f9;
  --bg-white: #ffffff;

  /* Azul Técnico (brújula del logo) */
  --blue-primary: #2563eb;
  --blue-light: #60a5fa;
  --blue-pale: rgba(37, 99, 235, 0.12);
  --blue-glow: rgba(37, 99, 235, 0.25);

  /* Rosa/Terracota Acuarela (círculo del logo) */
  --rose-primary: #c8666f;
  --rose-light: #e89099;
  --rose-pale: rgba(200, 102, 111, 0.12);

  /* Texto */
  --text-white: #ffffff;
  --text-light: #e2e8f0;
  --text-muted: #8896b0;
  --text-dark: #0f172a;
  --text-dark-muted: #64748b;

  /* Bordes */
  --border-dark: rgba(255, 255, 255, 0.07);
  --border-dark-strong: rgba(255, 255, 255, 0.13);
  --border-light: #e2e8f0;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.32);
  --shadow-blue: 0 0 24px rgba(37, 99, 235, 0.28);

  /* Tipografía */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Layout */
  --container-max-width: 1200px;
  --topbar-height: 40px;
  --header-height: 72px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transiciones */
  --ease-fast: 0.18s ease;
  --ease-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + var(--header-height) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--rose-primary);
}

.text-blue {
  color: var(--blue-light);
}

.text-rose {
  color: var(--rose-light);
}

.w-100 {
  width: 100%;
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-primary);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1rem;
  color: var(--text-dark-muted);
  max-width: 640px;
  line-height: 1.7;
}

.text-center .section-description {
  margin: 0 auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--ease-fast);
  white-space: nowrap;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn-primary {
  background-color: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-primary);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-dark-card);
  color: var(--text-light);
  border-color: var(--border-dark-strong);
}

.btn-secondary:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.78rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-dark-strong);
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.top-bar-item.link-hover:hover {
  color: var(--blue-light);
  transition: color var(--ease-fast);
}

.top-bar-divider {
  color: var(--border-dark-strong);
}

.top-bar-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rose-light);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow var(--ease-normal);
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--ease-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.07);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-xs);
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all var(--ease-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--topbar-height) + var(--header-height));
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 14, 23, 0.95) 0%,
    rgba(10, 14, 23, 0.88) 45%,
    rgba(10, 14, 23, 0.6) 75%,
    rgba(10, 14, 23, 0.35) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  width: 100%;
}

.hero-content {
  max-width: 820px;
  width: 100%;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #2563eb);
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25), 0 4px 16px rgba(22, 163, 74, 0.15);
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--rose-primary);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 80px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-dark-strong);
  flex-shrink: 0;
}

/* ==========================================================================
   ABOUT / NOSOTROS SECTION
   ========================================================================== */
.about {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.about .section-title {
  color: var(--text-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--ease-normal);
  box-shadow: var(--shadow-sm);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}

.about-img-box {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.about-card:hover .about-img-box img {
  transform: scale(1.06);
}

.about-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose-light);
  background-color: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(200, 102, 111, 0.35);
}

.about-body {
  padding: 1.5rem;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.about-text {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  line-height: 1.7;
}

/* ==========================================================================
   SERVICES SECTION (5 OFFICIAL PILLARS)
   ========================================================================== */
.services {
  padding: 6rem 0;
  background-color: var(--bg-dark);
  color: var(--text-white);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-primary), var(--blue-primary), transparent);
}

.services .section-title {
  color: #fff;
}

.services .section-description {
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.service-card {
  grid-column: span 2;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--ease-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--rose-primary));
  opacity: 0;
  transition: opacity var(--ease-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--bg-dark-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), var(--shadow-blue);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--blue-pale);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-sm);
  color: var(--blue-light);
  transition: all var(--ease-fast);
  flex-shrink: 0;
}

.service-card:hover .service-icon-box {
  background-color: var(--blue-primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: var(--shadow-blue);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
}

.service-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-light);
  background-color: var(--rose-pale);
  border: 1px solid rgba(200, 102, 111, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.service-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  border-top: 1px solid var(--border-dark);
  padding-top: 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}

.service-features li::before {
  content: '→';
  color: var(--rose-primary);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.45;
  flex-shrink: 0;
}

.service-card-footer {
  border-top: 1px solid var(--border-dark);
  padding-top: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
  transition: all var(--ease-fast);
}

.link-arrow:hover {
  gap: 0.7rem;
  color: #fff;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.projects .section-title {
  color: var(--text-dark);
}

/* Filter Buttons */
.project-filter-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--ease-normal);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}

.project-card.hidden {
  display: none;
}

.project-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--rose-primary);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.project-content {
  padding: 1.4rem 1.5rem 1.5rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-dark-muted);
  margin-bottom: 0.65rem;
}

.meta-dot {
  color: var(--border-light);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.project-excerpt {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.project-client {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-primary);
  letter-spacing: 0.04em;
}

.btn-sheet {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--ease-fast);
}

.btn-sheet:hover {
  color: var(--blue-primary);
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications {
  padding: 6rem 0;
  background-color: var(--bg-dark-surface);
  color: var(--text-white);
}

.certifications .section-title {
  color: #fff;
}

.certifications .section-description {
  color: var(--text-muted);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cert-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--ease-normal);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-blue);
}

.cert-img-box {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
}

.cert-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cert-info {
  padding: 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.cert-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.cert-status::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
  padding: 6rem 0;
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

/* Info Card */
.contact-info-card {
  padding: 2.5rem;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-xl);
}

.contact-info-card .section-tag {
  display: block;
  margin-bottom: 1rem;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.contact-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--blue-pale);
  border-radius: var(--radius-sm);
  color: var(--blue-light);
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 18px;
  height: 18px;
}

.contact-details-list strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.contact-details-list p,
.contact-details-list a {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color var(--ease-fast);
}

.contact-details-list a:hover {
  color: var(--blue-light);
}

.coverage-box {
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.coverage-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.coverage-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Form Card */
.contact-form-card {
  padding: 2.5rem;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-xl);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-dark-strong);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.7rem 0.95rem;
  outline: none;
  transition: border-color var(--ease-fast), background-color var(--ease-fast);
  width: 100%;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--blue-primary);
  background-color: rgba(37, 99, 235, 0.06);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control option {
  background-color: var(--bg-dark-card);
  color: var(--text-light);
}

.error-text {
  font-size: 0.72rem;
  color: #f87171;
  display: none;
}

.error-text.visible {
  display: block;
}

/* Form Success */
.form-success-message {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(74, 222, 128, 0.15);
  border: 2px solid #4ade80;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #4ade80;
}

.success-icon svg {
  width: 24px;
  height: 24px;
}

.form-success-message h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.form-success-message p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-dark-strong);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.4fr;
  gap: 3rem;
  padding: 4rem 1.5rem 3rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.1rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-mini {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-light);
  background-color: var(--rose-pale);
  border: 1px solid rgba(200, 102, 111, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--ease-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-credits {
  color: var(--text-muted);
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 52px;
  height: 52px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--ease-fast);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.tooltip {
  display: none;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: color var(--ease-fast);
}

.modal-close-btn:hover {
  color: #fff;
}

#project-modal-content {
  padding: 2.5rem;
}

/* ==========================================================================
   DESKTOP-ONLY / MOBILE-ONLY
   ========================================================================== */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* ==========================================================================
   RESPONSIVE — TABLET (max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certifications-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (max 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header {
    top: 0;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 16px);
  }

  .hero {
    padding-top: var(--header-height);
    min-height: 100svh;
  }

  .hero-stats {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .stat-divider {
    display: none;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.05rem;
    display: block;
    padding: 0.75rem 0;
  }

  .nav-cta-wrapper {
    margin-top: 1.5rem;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 2rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   PORTAL INTERNO — Acceso Equipo
   ========================================================================== */
.nav-link-portal {
  color: var(--rose-light) !important;
  border: 1px solid rgba(200, 102, 111, 0.35);
  padding: 0.4rem 0.8rem !important;
}

.nav-link-portal:hover,
.nav-link-portal.active {
  background-color: var(--rose-pale) !important;
  color: #fff !important;
}

body.page-portal {
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
}

.portal-main {
  padding-top: calc(var(--topbar-height) + var(--header-height) + 2.5rem);
  padding-bottom: 4rem;
  min-height: calc(100vh - 180px);
}

.portal-login-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.portal-login-card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.portal-login-card .section-tag {
  display: block;
}

.portal-login-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.portal-login-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.portal-alert {
  display: none;
  font-size: 0.82rem;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.portal-alert.visible {
  display: block;
}

.portal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  line-height: 1.55;
}

.portal-dashboard {
  display: none;
}

.portal-dashboard.visible,
.portal-login-wrap.visible {
  display: block;
}

.portal-login-wrap.hidden,
.portal-dashboard.hidden,
.portal-login-wrap[hidden],
.portal-dashboard[hidden],
.portal-panel[hidden] {
  display: none !important;
}

.page-portal .code,
.portal-panel-lead code {
  font-size: 0.78rem;
  color: var(--blue-light);
}

.portal-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.portal-welcome h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.portal-welcome p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.portal-welcome strong {
  color: var(--blue-light);
  font-weight: 600;
}

/* --- Barra de Accesos Directos a Drive y Sheets --- */
.portal-quick-actions {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.quick-action-header {
  margin-bottom: 0.75rem;
}

.quick-action-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.quick-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-drive-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ease-normal);
  border: 1px solid transparent;
}

.btn-drive-presupuestos {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.btn-drive-presupuestos:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: #6ee7b7;
}

.btn-drive-general {
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue-light);
  border-color: rgba(37, 99, 235, 0.25);
}

.btn-drive-general:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  color: #93c5fd;
}

.btn-sheets-direct {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.btn-sheets-direct:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
  color: #fde68a;
}

/* --- Pestañas del Portal --- */
.portal-tabs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.portal-tab {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-dark-card);
  border: 1.5px solid var(--border-dark-strong);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.portal-tab:hover,
.portal-tab.active {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* --- Paneles del Portal --- */
.portal-panel {
  display: none;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.portal-panel.active {
  display: block;
}

.panel-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.panel-header-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.portal-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.portal-panel-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 780px;
}

/* --- Contenedor Responsivo para Google Sheets --- */
.embed-frame {
  position: relative;
  width: 100%;
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.embed-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.8rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-link {
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--ease-fast);
}

.status-link:hover {
  color: #fff;
  text-decoration: underline;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: 72vh;
  min-height: 600px;
  border: 0;
  background: #ffffff;
}

.embed-footer-note {
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.embed-footer-note a {
  color: var(--blue-light);
  text-decoration: underline;
}

/* --- Tarjetas de Recursos Google Drive --- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: all var(--ease-normal);
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  opacity: 0;
  transition: opacity var(--ease-fast);
}

.resource-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.resource-card:hover::before {
  opacity: 1;
}

.resource-card-featured {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.22);
}

.resource-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.85rem;
}

.resource-icon-wrap {
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.resource-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.resource-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-light);
  border-top: 1px solid var(--border-dark);
  padding-top: 0.75rem;
  transition: color var(--ease-fast);
}

.resource-card:hover .resource-cta {
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN PARA EL PORTAL
   ========================================================================== */
@media (max-width: 1024px) {
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .portal-main {
    padding-top: calc(var(--header-height) + 1.75rem);
    padding-bottom: 3rem;
  }

  .portal-login-card {
    padding: 2rem 1.25rem;
  }

  .quick-action-buttons {
    flex-direction: column;
  }

  .btn-drive-action {
    width: 100%;
    justify-content: space-between;
  }

  .panel-header-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-header-actions {
    width: 100%;
  }

  .panel-header-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .embed-frame iframe {
    height: 60vh;
    min-height: 440px;
  }

  .portal-panel {
    padding: 1.25rem;
  }
}