/* ============================================
   MALAGAHOME — ESTILOS PRINCIPALES
   Mediterráneo cálido · Málaga
   ============================================ */

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

:root {
  --sol:       #c8873a;
  --sol-claro: #e8a455;
  --tierra:    #7a4e2d;
  --mar:       #2e6b8a;
  --mar-claro: #4a8fab;
  --crema:     #fdf6ed;
  --arena:     #f0e4ce;
  --arena-osc: #dbc9a8;
  --blanco:    #ffffff;
  --texto:     #2a1f14;
  --muted:     #8a7560;
  --borde:     #e0ceaf;
  --verde:     #4a7c59;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--crema);
  color: var(--texto);
  overflow-x: hidden;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}
p { line-height: 1.8; }

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .4s ease;
}
.nav.scrolled {
  background: rgba(253,246,237,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
  box-shadow: 0 2px 20px rgba(42,31,20,0.08);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; letter-spacing: 1px;
  color: var(--blanco); text-decoration: none;
  transition: color .3s;
}
.nav.scrolled .nav-logo { color: var(--tierra); }
.nav-logo span { color: var(--sol-claro); }
.nav.scrolled .nav-logo span { color: var(--sol); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-family: 'Jost', sans-serif;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.85); text-decoration: none;
  transition: color .3s;
}
.nav.scrolled .nav-link { color: var(--muted); }
.nav-link:hover { color: var(--blanco); }
.nav.scrolled .nav-link:hover { color: var(--sol); }

.nav-reservar {
  font-family: 'Jost', sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--sol); color: var(--blanco);
  padding: 12px 24px; border-radius: 4px; text-decoration: none;
  transition: all .3s;
}
.nav-reservar:hover { background: var(--sol-claro); transform: translateY(-1px); }

.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-burger span { width: 24px; height: 2px; background: var(--blanco); transition: all .3s; display: block; }
.nav.scrolled .nav-burger span { background: var(--texto); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a3a4a 0%, #2e6b8a 40%, #c8873a 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,31,20,0.3) 0%, rgba(26,31,20,0.1) 50%, rgba(26,31,20,0.6) 100%);
}
.hero-content {
  position: relative; text-align: center; padding: 0 24px;
  animation: heroFade .8s ease both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--sol-claro); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-tag::before, .hero-tag::after {
  content: ''; width: 40px; height: 1px; background: var(--sol-claro); opacity: .6;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  color: var(--blanco); letter-spacing: -1px; margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero h1 em { font-style: italic; color: var(--sol-claro); }
.hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: 16px; color: rgba(255,255,255,0.75); letter-spacing: 1px;
  margin-bottom: 48px; max-width: 500px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--sol); color: var(--blanco);
  padding: 18px 40px; border-radius: 4px; text-decoration: none;
  transition: all .3s; border: none; cursor: pointer;
}
.btn-hero-primary:hover { background: var(--sol-claro); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,135,58,0.4); }
.btn-hero-secondary {
  font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  background: transparent; color: var(--blanco);
  padding: 18px 40px; border-radius: 4px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4); transition: all .3s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-family: 'Jost', sans-serif;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  animation: bounce 2s ease infinite;
}
.hero-scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ============================================
   SECCIÓN GENÉRICA
   ============================================ */
.section { padding: 100px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--sol); margin-bottom: 16px; display: block;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px); color: var(--tierra);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--sol); }
.section-lead {
  font-size: 18px; color: var(--muted); max-width: 580px; line-height: 1.8;
  margin-bottom: 48px;
}
.divider {
  width: 60px; height: 3px; background: var(--sol);
  margin: 0 0 48px; border-radius: 2px;
}

/* ============================================
   NÚMEROS / STATS
   ============================================ */
.stats-strip {
  background: var(--tierra);
  padding: 48px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-item { text-align: center; padding: 24px; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 400; color: var(--sol-claro); line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   APARTAMENTOS
   ============================================ */
.aptos-section { background: var(--arena); }
.aptos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 16px;
}
.apto-card {
  background: var(--blanco); border-radius: 12px;
  overflow: hidden; transition: all .35s;
  box-shadow: 0 4px 20px rgba(42,31,20,0.08);
}
.apto-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(42,31,20,0.15); }
.apto-img {
  height: 220px; position: relative; overflow: hidden;
}
.apto-img-bg {
  position: absolute; inset: 0;
  transition: transform .5s ease;
}
.apto-card:hover .apto-img-bg { transform: scale(1.06); }
.apto-badge {
  position: absolute; top: 16px; left: 16px;
  font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--sol); color: var(--blanco);
  padding: 4px 12px; border-radius: 20px;
}
.apto-body { padding: 28px; }
.apto-casa {
  font-family: 'Jost', sans-serif;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sol); margin-bottom: 8px;
}
.apto-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--tierra); margin-bottom: 8px;
}
.apto-desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.apto-features {
  display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.apto-feature {
  font-family: 'Jost', sans-serif;
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.apto-feature::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--sol); flex-shrink: 0; }
.apto-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--borde);
}
.apto-precio { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--tierra); }
.apto-precio span { font-family: 'Jost', sans-serif; font-size: 13px; color: var(--muted); }
.btn-reservar-card {
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--tierra); color: var(--blanco);
  padding: 10px 20px; border-radius: 4px; text-decoration: none;
  transition: all .2s;
}
.btn-reservar-card:hover { background: var(--sol); }

/* ============================================
   SERVICIOS / EXTRAS
   ============================================ */
.servicios-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.servicio-card {
  background: var(--blanco); border-radius: 12px; padding: 32px 24px;
  text-align: center; border: 1px solid var(--borde);
  transition: all .3s;
}
.servicio-card:hover { border-color: var(--sol); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(200,135,58,0.12); }
.servicio-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.servicio-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: var(--tierra); margin-bottom: 8px;
}
.servicio-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.servicio-precio {
  font-family: 'Jost', sans-serif;
  font-size: 13px; color: var(--sol); font-weight: 500; letter-spacing: 1px;
}

/* ============================================
   MÁLAGA / UBICACIÓN
   ============================================ */
.malaga-section { background: var(--tierra); color: var(--blanco); }
.malaga-section .section-title { color: var(--arena); }
.malaga-section .section-lead { color: rgba(240,228,206,0.7); }
.malaga-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.malaga-features { display: flex; flex-direction: column; gap: 20px; }
.malaga-feature {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  transition: background .2s;
}
.malaga-feature:hover { background: rgba(255,255,255,0.1); }
.malaga-feature-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.malaga-feature-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--arena); margin-bottom: 4px; }
.malaga-feature-text { font-size: 13px; color: rgba(240,228,206,0.65); line-height: 1.7; }
.malaga-map-placeholder {
  border-radius: 16px; overflow: hidden; height: 400px;
  background: linear-gradient(135deg, #1a3a4a, #2e6b8a);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.malaga-map-placeholder iframe { width: 100%; height: 100%; border: none; }

/* ============================================
   NORMAS / POLÍTICA
   ============================================ */
.normas-section { background: var(--crema); }
.normas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.norma-card {
  background: var(--blanco); border-radius: 12px; padding: 32px;
  border-left: 4px solid var(--sol);
}
.norma-icon { font-size: 28px; margin-bottom: 16px; display: block; }
.norma-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--tierra); margin-bottom: 12px;
}
.norma-lista { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.norma-lista li {
  font-size: 14px; color: var(--muted); line-height: 1.6;
  padding-left: 16px; position: relative;
}
.norma-lista li::before {
  content: '—'; position: absolute; left: 0; color: var(--sol); font-size: 12px;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto-section { background: var(--arena); }
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.contacto-items { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.contacto-item {
  display: flex; gap: 16px; align-items: center;
  padding: 20px; background: var(--blanco); border-radius: 10px;
  border: 1px solid var(--borde);
}
.contacto-icon { font-size: 24px; width: 48px; text-align: center; flex-shrink: 0; }
.contacto-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.contacto-valor { font-size: 16px; color: var(--tierra); font-weight: 500; }

.form-contacto { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.form-field input, .form-field textarea, .form-field select {
  padding: 14px 16px; border: 1px solid var(--borde); border-radius: 8px;
  font-family: 'Lora', serif; font-size: 15px; color: var(--texto);
  background: var(--blanco); outline: none; transition: border-color .2s;
  -webkit-appearance: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--sol); }
.form-field textarea { min-height: 120px; resize: vertical; }
.btn-enviar {
  font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--sol); color: var(--blanco);
  padding: 16px 32px; border-radius: 8px; border: none; cursor: pointer;
  transition: all .2s; align-self: flex-start;
}
.btn-enviar:hover { background: var(--sol-claro); transform: translateY(-2px); }

/* ============================================
   CTA RESERVAR
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, #2e6b8a 0%, #1a3a4a 100%);
  padding: 100px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta-tag {
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--sol-claro); margin-bottom: 20px; display: block;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px); color: var(--blanco);
  margin-bottom: 20px;
}
.cta-title em { font-style: italic; color: var(--sol-claro); }
.cta-text { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 40px; line-height: 1.8; }
.btn-cta {
  font-family: 'Jost', sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--sol); color: var(--blanco);
  padding: 20px 56px; border-radius: 4px; text-decoration: none;
  transition: all .3s; display: inline-block;
}
.btn-cta:hover { background: var(--sol-claro); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(200,135,58,0.5); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--texto); color: rgba(255,255,255,0.6);
  padding: 60px 48px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: var(--blanco); margin-bottom: 16px; display: block;
}
.footer-logo span { color: var(--sol); }
.footer-desc { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer-col-title {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blanco); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--sol); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--sol); text-decoration: none; }

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--crema); padding: 100px 32px 48px;
  flex-direction: column; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  font-size: 24px; letter-spacing: 1px; color: var(--tierra);
  font-family: 'Playfair Display', serif; text-transform: none; letter-spacing: 0;
}
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 28px; cursor: pointer; color: var(--tierra); background: none; border: none;
}

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

@media (max-width: 768px) {
  .section          { padding: 70px 24px; }
  .nav              { padding: 0 24px; }
  .nav-links        { display: none; }
  .nav-burger       { display: flex; }
  .aptos-grid       { grid-template-columns: 1fr; }
  .servicios-grid   { grid-template-columns: repeat(2, 1fr); }
  .normas-grid      { grid-template-columns: 1fr; }
  .malaga-grid      { grid-template-columns: 1fr; }
  .contacto-grid    { grid-template-columns: 1fr; }
  .stats-inner      { grid-template-columns: repeat(2, 1fr); }
  .stat-item        { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .footer-top       { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .cta-section      { padding: 70px 24px; }
  .stats-strip      { padding: 32px 24px; }
}

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

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
.fade-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
