:root {
  --color-primary: #f4a526;
  --color-primary-dark: #d78c17;
  --color-deep-blue: #083247;
  --color-bg: #f4f4f4;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.18);
  --radius-lg: 1.25rem;
  --radius-full: 999px;
  --max-width: 1120px;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Utilidades generales */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #f9fafb, #edf2f7);
}

.section h2 {
  font-size: clamp(2rem, 2.5vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--color-deep-blue);
}

.section-intro {
  max-width: 640px;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

/* Navbar */
.site-header {
  position: relative;
  color: #ffffff;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 50, 71, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: #e5e7eb;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4.5rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: brightness(0.4);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(244, 165, 38, 0.35), transparent 55%),
              linear-gradient(120deg, rgba(8, 50, 71, 0.9), rgba(8, 50, 71, 0.85));
  z-index: -1;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  color: #f9fafb;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 600px;
  color: #e5e7eb;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #111827;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #f9fafb;
  border: 1px solid rgba(249, 250, 251, 0.4);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
}

/* Layouts */
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-deep-blue);
}

.card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Quote card */
.quote-card {
  position: relative;
  padding: 2rem 2rem 1.8rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.quote-icon {
  position: absolute;
  top: 0.8rem;
  left: 1.4rem;
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: 0.5;
}

.quote-title {
  font-weight: 700;
  color: var(--color-deep-blue);
  margin-bottom: 0.5rem;
}

.quote-text {
  color: var(--color-muted);
  margin-top: 1.25rem;
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--color-text);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Video */
.video-wrapper h3 {
  margin-bottom: 0.75rem;
  color: var(--color-deep-blue);
}

.embed-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.small {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.project-image img {
  width: 100%;
  display: block;
  height: 210px;
  object-fit: cover;
}

.project-body {
  padding: 1.4rem 1.4rem 1.6rem;
}

.project-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-deep-blue);
}

.project-body p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  width: 100%;
  border-radius: 0.9rem;
  cursor: zoom-in;
  display: block;
  height: 130px;
  object-fit: cover;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
  filter: brightness(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
}

.lightbox img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -1.75rem;
  right: 0;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #f9fafb;
  cursor: pointer;
}

/* Contacto */
.contact-cols {
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.contact-list a {
  color: var(--color-deep-blue);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 1.75rem;
}

.social-links h3 {
  margin-bottom: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-deep-blue);
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

.social-btn:hover {
  background: rgba(8, 50, 71, 0.06);
}

/* Formulario */
.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.contact-form h3 {
  margin-bottom: 1.25rem;
  color: var(--color-deep-blue);
}

.form-row {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(244, 165, 38, 0.35);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(22, 163, 74, 0.8);
  text-decoration: none;
  z-index: 30;
}

.wa-icon {
  font-size: 1.8rem;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 1.8rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-made a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-made a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 960px) {
  .two-cols {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    padding-top: 5.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(8, 50, 71, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }

  .nav-links.open {
    max-height: 260px;
  }

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

  .hero {
    min-height: 70vh;
  }

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

@media (max-width: 560px) {
  .cards-grid,
  .projects-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-inline: 1.2rem;
  }

  .hero-badge {
    max-width: 100%;
  }

  .contact-form {
    padding-inline: 1.25rem;
  }
}