/*
Theme Name: Prime Madrid Arquitectura
Theme URI: https://primemadridarquitectura.com
Author: Prime Madrid Arquitectura
Description: Tema corporativo para estudio de arquitectura en Madrid
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: prime-arq
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --anthracite:   #1c1c1e;
  --graphite:     #2d2d2f;
  --steel:        #4a4a4f;
  --accent:       #c8a96e;
  --accent-light: #dfc28e;
  --white:        #ffffff;
  --off-white:    #f5f5f3;
  --light-gray:   #eaeae8;
  --mid-gray:     #9a9a9a;
  --text-dark:    #1c1c1e;
  --text-body:    #444444;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --radius:     2px;
  --radius-md:  6px;
  --shadow:     0 4px 32px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.14);
  --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(--text-dark);
  font-weight: 400;
  line-height: 1.15;
}

/* ===========================
   LAYOUT
=========================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section--off { background: var(--off-white); }
.section--dark { background: var(--anthracite); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===========================
   TYPOGRAPHY
=========================== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-title--white { color: var(--white); }
.lead {
  font-size: 1.05rem;
  color: var(--mid-gray);
  line-height: 1.85;
  max-width: 520px;
}
.lead--white { color: rgba(255,255,255,0.65); }
.accent-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 20px 0;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  border-radius: var(--radius);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.35);
}
.btn-dark {
  background: var(--anthracite);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--graphite);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--anthracite);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--anthracite);
  border: 1px solid var(--anthracite);
}
.btn-outline-dark:hover {
  background: var(--anthracite);
  color: var(--white);
}

/* ===========================
   HEADER
=========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.site-header.scrolled .logo-name { color: var(--anthracite); }
.site-header.scrolled .logo-sub  { color: var(--accent); }
.site-header.scrolled .main-nav a { color: var(--steel); }
.site-header.scrolled .main-nav a:hover { color: var(--anthracite); }
.site-header.scrolled .nav-cta {
  background: var(--accent);
  color: var(--white) !important;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  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: 1px;
  background: var(--accent);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 500 !important;
}
.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);
}
.site-header.scrolled .menu-toggle span { background: var(--anthracite); }

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--anthracite);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28,28,30,0.88) 0%,
    rgba(28,28,30,0.60) 55%,
    rgba(28,28,30,0.40) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-tag-line {
  width: 32px; height: 1px;
  background: var(--accent);
}
.hero-tag span {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero-title em {
  font-style: italic;
  color: var(--accent-light);
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 520px;
  background: rgba(28,28,30,0.55);
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-bottom-item {
  flex: 1;
  padding: 24px 32px;
  background: rgba(28,28,30,0.80);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.hero-bottom-item:last-child { border-right: none; }
.hero-bottom-item:hover { background: rgba(200,169,110,0.15); }
.hbi-icon {
  width: 40px; height: 40px;
  background: rgba(200,169,110,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hbi-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hbi-text p {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
}
.hbi-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

/* ===========================
   SERVICIOS
=========================== */
.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 200;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-num { color: var(--accent); opacity: 0.4; }
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.8;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.service-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--off-white);
  color: var(--steel);
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ===========================
   VENTAJAS / POR QUÉ
=========================== */
.ventaja-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.ventaja-item:hover { background: var(--white); box-shadow: var(--shadow); }
.ventaja-icon {
  width: 48px; height: 48px;
  background: var(--anthracite);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ventaja-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ventaja-item h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.ventaja-item p {
  font-size: 0.875rem;
  color: var(--mid-gray);
  line-height: 1.75;
}

/* ===========================
   PROCESO
=========================== */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.proceso-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.proceso-step::after {
  content: '→';
  position: absolute;
  top: 20px;
  right: -10px;
  color: var(--accent);
  font-size: 1.2rem;
  z-index: 1;
}
.proceso-step:last-child::after { display: none; }
.paso-num {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.proceso-step h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}
.proceso-step p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ===========================
   PRECIOS / TARIFAS
=========================== */
.precio-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.precio-card.featured {
  background: var(--anthracite);
  border-color: var(--anthracite);
  transform: scale(1.03);
}
.precio-card.featured h3,
.precio-card.featured .precio-desc { color: var(--white); }
.precio-card.featured .precio-list li { color: rgba(255,255,255,0.75); }
.precio-card.featured .precio-list li::before { background: var(--accent); }
.featured-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.precio-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.precio-desde {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  display: block;
  margin-bottom: 4px;
}
.precio-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.precio-unit {
  font-size: 0.8rem;
  color: var(--mid-gray);
  display: block;
  margin-bottom: 20px;
}
.precio-desc {
  font-size: 0.85rem;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 60px;
}
.precio-list {
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.precio-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-body);
}
.precio-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ===========================
   FORMULARIO CONTACTO
=========================== */
.contact-wrap {
  background: var(--off-white);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.contact-info {
  background: var(--anthracite);
  padding: 56px 44px;
}
.contact-info h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 16px;
}
.contact-info .accent-line { background: var(--accent); }
.contact-info p {
  color: rgba(255,255,255,0.6);
  font-size: 0.925rem;
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 38px; height: 38px;
  background: rgba(200,169,110,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.contact-detail a { font-size: 0.95rem; color: var(--white); }
.contact-form {
  padding: 56px 44px;
  background: var(--white);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  background: var(--white);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mid-gray); }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--mid-gray);
  line-height: 1.6;
}
.form-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.form-check a { color: var(--accent); text-decoration: underline; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--anthracite);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col p,
.footer-col a,
.footer-col li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.9;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  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.2); }

/* ===========================
   COOKIE BANNER
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 500px;
  background: var(--anthracite);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 22px 26px;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .proceso-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .proceso-step::after { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; gap: 24px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { padding: 40px 28px; }
  .contact-form { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-bottom { flex-direction: column; }
  .proceso-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(28,28,30,0.98);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }
  .main-nav.open a { font-size: 1.2rem; color: var(--white) !important; }
  .menu-toggle { display: flex; z-index: 1000; }
  .precio-card.featured { transform: none; }
}
