:root {
  --bg-light: #f5f2eb;
  --bg-white: #ffffff;
  --bg-card: #eae6dd;
  --bg-dark: #0f1c3f;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --text-light: #f5f2eb;
  --accent-gold: #c5a059;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Base Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
}

.subtitle {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
}

/* Botones */
.btn-primary {
  display: inline-block;
  background-color: var(--bg-dark);
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #1a2c5b;
}

.btn-outline {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 12px 28px;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

/* Layout del Header */
/* Layout General del Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: #f6f4f0; /* Fondo beige claro exacto */
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Contenedor del enlace del logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Imagen del logo */
.logo__img {
  height: 32px;        /* Ajusta esta altura según el tamaño que quieras en el header */
  width: auto;         /* Mantiene la proporción horizontal original de tu logo */
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

/* Efecto hover suave al pasar el ratón */
.logo:hover .logo__img {
  opacity: 0.85;
}

/* Bloque Derecho (Menú + Botón) */
.header__right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: #1e293b;
}

/* Botón Contacto en Bloque Azul Marino */
.btn--header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1e2e4a; /* Azul marino profundo */
  color: #ffffff;
  padding: 0.6rem 1.6rem;
  border-radius: 8px; /* Bordes redondeados */
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn--header:hover {
  background-color: #152238;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
}

/* Adaptación para Pantallas Móviles */
@media (max-width: 850px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle__bar {
    width: 24px;
    height: 2px;
    background-color: #1e293b;
  }

  .nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #f6f4f0;
    padding: 3rem 2rem;
    transition: right 0.3s ease;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
}

/* Hero Section */
.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1rem;
}

.hero-image-box {
  width: 100%;
  height: 420px; /* Ajusta la altura según tu diseño */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: #161d2f; /* Color de reserva mientras carga la imagen */
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen cubra todo el recuadro sin deformarse */
  object-position: center;
  display: block;
}
/*
.logo-placeholder {
  width: 0px;
  height: 100px;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
}*/

/* Servicios */
.services {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  padding: 35px 25px;
  border-radius: 6px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Proceso */
.process {
  padding: 80px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step .step-num {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 15px;
  display: block;
}

.process-step h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 400;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Manifiesto */
.manifesto {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 100px 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.manifesto h2 {
  font-size: 2rem;
  line-height: 1.3;
}

.manifesto p {
  font-size: 0.95rem;
  color: #a0aabf;
}

/* Proyectos */
.projects {
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background-color: var(--bg-card);
  height: 260px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
/* ==========================================================================
   PORTFOLIO / PROYECTOS SELECCIONADOS
   ========================================================================== */
.projects {
  padding: 5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border-radius: 6px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(22, 29, 47, 0.08);
}

.project-card__image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #eae7e1;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Evita que la imagen se deforme */
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

/* Microinteracción: Zoom suave en la imagen al hacer hover */
.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__info {
  padding: 1.25rem 1.5rem;
}

.project-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.project-card__title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Adaptación responsive en móvil y tablet */
@media (max-width: 850px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* FAQ */
.faq {
  padding: 80px 0 100px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 150px;
  padding: 0 25px 20px 25px;
}

/* CTA */
.cta-section {
  background-color: var(--bg-dark);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-section p {
  color: #a0aabf;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER (ESTILO AZUL MARINO ELEGANTE)
   ========================================================================== */
.footer {
  background-color: #1a2744; /* Azul marino profundo */
  color: #e2e8f0;
  padding: 4.5rem 0 2.5rem 0;
  font-family: var(--font-body);
}

.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

/* Marca y descripción */
.footer__brand {
  max-width: 360px;
}

.footer__logo {
  font-family: var(--font-heading); /* Tipografía Playfair Display / Serif */
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.footer__desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Columnas derechas */
.footer__info {
  display: flex;
  gap: 4rem;
}

.footer__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c4a47c; /* Tono dorado/arena suave para las etiquetas */
  display: block;
  margin-bottom: 0.6rem;
}

.footer__text,
.footer__link {
  font-size: 0.9rem;
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #c4a47c;
}

/* Línea divisoria */
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 3rem 0 2rem 0;
}

/* Barra inferior */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
}

.footer__legal {
  display: flex;
  gap: 1.75rem;
}

.footer__legal a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: #ffffff;
}

/* Adaptación Responsive en Móvil */
@media (max-width: 768px) {
  .footer__main {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer__info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer__legal {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
/* Enlace e imagen del logo en el Footer */
.footer__logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer__logo-img {
  height: 36px;        /* Ajusta la altura deseada para la marca en el footer */
  width: auto;         /* Mantiene las proporciones originales sin deformar */
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.footer__logo-link:hover .footer__logo-img {
  opacity: 0.85;
}

/* Ajuste sutil a la descripción */
.footer__desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-grid,
  .services-grid,
  .process-grid,
  .manifesto-grid,
  .projects-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}