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

:root {
  --navy: #1a2744;
  --navy-deep: #0f1a2e;
  --navy-light: #243352;
  --gold: #c8a44e;
  --gold-light: #dbb966;
  --gold-dark: #a8872e;
  --cream: #f5f0e8;
  --cream-light: #faf7f2;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #555555;
  --text-muted: #888888;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.08);
  --shadow-md: 0 8px 30px rgba(26, 39, 68, 0.12);
  --shadow-lg: 0 20px 60px rgba(26, 39, 68, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

.accent {
  color: var(--gold);
  font-style: italic;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-eyebrow.light {
  color: var(--gold-light);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 24px;
}

.section-title.light {
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 164, 78, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

.btn-icon {
  display: flex;
  align-items: center;
}

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

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: var(--navy);
  border-radius: 4px;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 2px;
}

.logo-mark--light {
  background: var(--gold);
}

.logo-mark--light::before {
  background: rgba(255, 255, 255, 0.2);
}

.logo-mark--light::after {
  background: var(--white);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* NAV TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 26, 46, 0.88) 0%,
    rgba(26, 39, 68, 0.75) 50%,
    rgba(26, 39, 68, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 0 100px;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.05;
  font-weight: 800;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 1;
}

.scroll-indicator span {
  width: 4px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ===== SERVICIOS ===== */
.servicios {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 164, 78, 0.2);
  background: var(--white);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== NOSOTROS ===== */
.nosotros {
  background: var(--cream);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros-image {
  position: relative;
}

.nosotros-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.nosotros-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

.nosotros-content .section-eyebrow {
  text-align: left;
}

.nosotros-content .section-title {
  text-align: left;
}

.nosotros-content > p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.nosotros-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.nosotros-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.list-icon {
  width: 22px;
  height: 22px;
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.list-icon svg {
  width: 100%;
  height: 100%;
}

/* ===== ESPACIO / GALLERY ===== */
.espacio {
  background: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item--large {
  grid-row: 1 / 3;
}

.gallery-item--large img {
  height: 100%;
  min-height: 500px;
}

.gallery-item--wide img {
  height: 280px;
}

/* ===== CTA ===== */
.cta {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cta .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
}

.cta .section-title {
  margin-bottom: 20px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--cream);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto-info .section-eyebrow,
.contacto-info .section-title {
  text-align: left;
}

.contacto-details {
  list-style: none;
  margin-top: 40px;
  display: grid;
  gap: 28px;
}

.contacto-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contacto-icon {
  width: 44px;
  height: 44px;
  color: var(--gold-dark);
  flex-shrink: 0;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.contacto-icon svg {
  width: 20px;
  height: 20px;
}

.contacto-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.contacto-item p,
.contacto-item a {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contacto-item a:hover {
  color: var(--gold-dark);
}

.contacto-map {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* FORM */
.contacto-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0dcd4;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream-light);
  transition: var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--gold-dark);
  margin: 0 auto 16px;
}

.form-success h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-text {
  font-size: 1.4rem;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact {
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact svg {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom-inner {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros-grid {
    gap: 40px;
  }

  .contacto-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-deep);
    padding: 80px 32px 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius);
  }

  .hero-content {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .section {
    padding: 72px 0;
  }

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

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

  .nosotros-image {
    order: -1;
  }

  .nosotros-image img {
    height: 360px;
  }

  .nosotros-image-accent {
    width: 120px;
    height: 120px;
    bottom: -12px;
    right: -12px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--large {
    grid-row: auto;
  }

  .gallery-item--large img,
  .gallery-item--wide img {
    height: 260px;
  }

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

  .contacto-form-wrap {
    padding: 32px 24px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

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