/*
Theme Name: Prime Madrid Investments
Theme URI: https://primemadridinvestments.com
Author: Prime Madrid Investments
Description: Tema corporativo para captación inmobiliaria y promoción de suelo en Madrid
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: prime-madrid
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --navy:       #0d1b2a;
  --gold:       #b8945a;
  --gold-light: #d4af7a;
  --cream:      #f7f3ee;
  --white:      #ffffff;
  --gray-light: #f0ece6;
  --gray-mid:   #9a9690;
  --text-dark:  #1a1a1a;
  --text-body:  #3d3d3d;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius: 4px;
  --shadow: 0 4px 32px rgba(13,27,42,0.10);
  --shadow-lg: 0 12px 60px rgba(13,27,42,0.16);
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.2;
}

/* ===========================
   LAYOUT UTILITIES
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 100px 0;
}
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* ===========================
   TYPOGRAPHY
=========================== */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.lead {
  font-size: 1.125rem;
  color: var(--gray-mid);
  line-height: 1.8;
  max-width: 540px;
}
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,148,90,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-prime {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--gold-light); }
.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.70) 60%, rgba(184,148,90,0.15) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(184,148,90,0.12) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13,27,42,0.75);
  border: 1px solid rgba(184,148,90,0.7);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.hero-badge span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:0.5; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 4px 32px rgba(0,0,0,0.6), 0 8px 64px rgba(0,0,0,0.4);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 560px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  background: rgba(13,27,42,0.45);
  padding: 14px 18px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  border-left: 2px solid var(--gold);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-stats {
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  gap: 0;
  z-index: 2;
}
.hero-stat {
  padding: 28px 36px;
  background: rgba(13,27,42,0.85);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.hero-stat:first-child { border-left: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  display: block;
  margin-top: 6px;
}

/* ===========================
   SERVICIOS
=========================== */
.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 44px 36px;
  box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
}
.service-card p {
  color: var(--gray-mid);
  line-height: 1.8;
  font-size: 0.95rem;
}
.service-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
}
.service-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 5-6' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ===========================
   PROCESO
=========================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.process-step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 300;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--cream);
}
.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

/* ===========================
   POR QUÉ NOSOTROS
=========================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
}
.why-item {
  background: var(--white);
  padding: 40px;
  transition: var(--transition);
}
.why-item:hover { background: var(--navy); }
.why-item:hover h4,
.why-item:hover p,
.why-item:hover .why-icon { color: var(--white); }
.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  transition: var(--transition);
}
.why-item h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.why-item p {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.7;
  transition: var(--transition);
}

/* ===========================
   FORMULARIO CONTACTO
=========================== */
.contact-section {
  background: var(--navy);
  padding: 100px 0;
}
.contact-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 56px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(184,148,90,0.08);
}
.form-group select option { background: var(--navy); color: var(--white); }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.6;
}
.form-check a { color: var(--gold); text-decoration: underline; }
.form-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #06101a;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 56px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col p,
.footer-col a,
.footer-col li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-col ul { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}
.footer-logo .logo-prime { font-size: 1.3rem; }
.footer-logo .logo-sub { font-size: 0.6rem; }

/* ===========================
   COOKIE BANNER
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 24px 28px;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .hero-stats { position: static; margin-top: 60px; display: flex; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stat { padding: 20px 24px; }
  .hero-stats { flex-wrap: wrap; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .contact-form-wrap { padding: 32px 24px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(13,27,42,0.98);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }
  .main-nav.open a { font-size: 1.2rem; }
  .menu-toggle { display: flex; z-index: 1000; }
  .process-steps { grid-template-columns: 1fr; }
}
