/* ─────────────────────────────────────
   ESPACIO COLOMBRES — Stylesheet
   Elegante · Formal · Sobrio
───────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #171A24;
  --dark:     #232838;
  --gray:     #E7E4DC;
  --mid:      #8B8579;
  --border:   #D3CDBC;
  --gold:     #A98A46;
  --gold-lt:  #F0E7D2;
  --white:    #FAF8F3;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:0 12px 48px rgba(0,0,0,.14);

  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HELPERS ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section--gray { background: var(--gray); }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p  { color: var(--mid); }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

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

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid var(--black);
  cursor: pointer;
}
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); }
.btn-primary.btn-full { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: .95rem;
  border: 2px solid rgba(255,255,255,.5);
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--black);
  color: var(--black);
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-nav {
  background: var(--black);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .875rem;
  transition: background var(--transition);
}
.btn-nav:hover { background: #2E3550; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  transition: color var(--transition);
}
.navbar.scrolled .logo-text { color: var(--black); }
.logo-text strong { font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--dark); }
.navbar.scrolled .nav-links a:hover { color: var(--gold); }
.nav-links a:not(.btn-nav):hover { color: var(--white); opacity: .7; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #14161F 0%, #1E2233 50%, #2A2F45 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('img/hero-bg.jpg') center/cover no-repeat;
  opacity: .35;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 100%);
}
.hero-content {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  max-width: 680px;
  padding-left: 24px;
  width: 100%;
}
.hero-tag {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.3);
  animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.5) translateY(20px); }
}

/* ── BADGES ── */
.badges {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.badge-item:hover { background: var(--gray); }
.badge-icon { font-size: 1.8rem; }
.badge-item strong { display: block; font-size: 1.1rem; font-weight: 700; }
.badge-item p { font-size: .85rem; color: var(--mid); margin: 0; }

/* ── NOSOTROS ── */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.nosotros-imgs {
  position: relative;
  height: 500px;
}
.img-card {
  position: absolute;
  border-radius: var(--radius);
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-card--main {
  width: 80%; height: 80%;
  top: 0; left: 0;
  box-shadow: var(--shadow-lg);
}
.img-card--secondary {
  width: 55%; height: 50%;
  bottom: 0; right: 0;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.img-placeholder {
  font-size: 2rem;
  color: #aaa;
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: #999;
}

.nosotros-text { padding: 20px 0; }
.nosotros-text h2 { margin-bottom: 20px; }
.nosotros-text p { color: #555; margin-bottom: 16px; }

.check-list {
  list-style: none;
  margin: 24px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-list li {
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
}

/* ── SERVICIOS ── */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servicio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-lt);
}
.servicio-icon { font-size: 2.2rem; margin-bottom: 16px; }
.servicio-card h3 { margin-bottom: 10px; }
.servicio-card p { font-size: .9rem; color: #666; }

/* ── GALERÍA ── */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
}
.gal-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}
.gal-item--lg { grid-column: span 2; }
.gal-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  color: #bbb;
}
.gal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-overlay p { color: var(--white); font-weight: 600; font-size: .9rem; }

.galeria-cta { text-align: center; margin-top: 40px; }

/* ── TESTIMONIOS ── */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.testimonio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonio-card--featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: scale(1.04);
}
.testimonio-card--featured:hover { transform: scale(1.04) translateY(-4px); }
.testimonio-card--featured .stars { color: var(--gold); }
.testimonio-card--featured .testimonio-autor strong { color: var(--white); }
.testimonio-card--featured .testimonio-autor span { color: rgba(255,255,255,.6); }
.testimonio-card--featured .autor-avatar { background: rgba(255,255,255,.15); color: var(--white); }

.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.testimonio-card p { font-size: .92rem; color: #555; line-height: 1.7; margin-bottom: 24px; }
.testimonio-card--featured p { color: rgba(255,255,255,.85); }
.testimonio-autor { display: flex; align-items: center; gap: 12px; }
.autor-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: var(--mid);
  flex-shrink: 0;
}
.testimonio-autor strong { display: block; font-size: .9rem; }
.testimonio-autor span { font-size: .8rem; color: var(--mid); }

/* ── CONTACTO ── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contacto-info h2 { margin: 12px 0 16px; }
.contacto-info > p { color: #666; margin-bottom: 40px; }

.contacto-datos { display: flex; flex-direction: column; gap: 20px; }
.dato-item { display: flex; align-items: flex-start; gap: 16px; }
.dato-icon { font-size: 1.4rem; margin-top: 2px; }
.dato-item strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.dato-item p { font-size: .9rem; color: #666; margin: 0; }
.dato-item a { color: var(--gold); font-weight: 500; }
.dato-item a:hover { text-decoration: underline; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 28px;
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 220px; border: 0; display: block; }

.contacto-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--mid); text-align: center; margin-top: 12px; }
.form-note a { color: var(--gold); font-weight: 500; }
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

/* ── FOOTER ── */
.footer { background: var(--black); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer .logo-text { color: var(--white); font-size: 1.3rem; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.footer-nav a { font-size: .9rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; align-items: flex-start; padding-top: 8px; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background var(--transition);
}
.social-btn:hover { background: var(--gold); }
.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 99;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}

/* ── ANIMACIONES DE ENTRADA ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .badges-grid         { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid       { gap: 48px; }
  .servicios-grid      { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid    { grid-template-columns: 1fr; }
  .testimonio-card--featured { transform: scale(1); }
  .testimonio-card--featured:hover { transform: translateY(-4px); }
  .contacto-grid       { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--dark) !important; font-size: 1.1rem; }
  .hamburger { display: flex; z-index: 201; }

  .badges-grid         { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nosotros-grid       { grid-template-columns: 1fr; }
  .nosotros-imgs       { height: 320px; order: -1; }
  .servicios-grid      { grid-template-columns: 1fr; }
  .galeria-grid        {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gal-item--lg        { grid-column: span 2; height: 220px; }
  .gal-item            { height: 180px; }
  .testimonios-grid    { grid-template-columns: 1fr; }
  .form-row            { grid-template-columns: 1fr; }
  .contacto-form       { padding: 32px 24px; }
  .footer-inner        { grid-template-columns: 1fr; gap: 32px; }
  .check-list          { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .badges-grid { grid-template-columns: 1fr; }
  .hero-btns   { flex-direction: column; }
  .hero-btns a { text-align: center; }
}
