/*
Theme Name:   Arlo Arquitectura Child
Theme URI:    https://arloarquitectura.es
Description:  Tema hijo de Astra — replica exacta del diseño HTML de Arlo Arquitectura.
Author:       Arlo Arquitectura
Version:      2.0
Template:     astra
Text Domain:  arlo-child
*/

/* ─── GOOGLE FONTS ───────────────────────── */
@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:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap");

/* ─── VARIABLES ──────────────────────────── */
:root {
  --cream:      #F7F3EC;
  --linen:      #FAF8F4;
  --sand:       #EDE6D8;
  --parchment:  #DDD2BF;
  --terracotta: #B87355;
  --clay:       #8A5840;
  --espresso:   #1E1410;
  --bark:       #4A3F36;
  --stone:      #8B7B6E;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "DM Sans", system-ui, sans-serif;
}

/* ─── BASE ───────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--cream) !important;
  color: var(--bark) !important;
  font-family: var(--font-sans) !important;
  font-weight: 300 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  overflow-x: hidden;
}

/* ─── ASTRA: quitar padding top que añade por el header fijo ── */
.elementor-page .site-content,
.ast-container,
#content {
  padding-top: 0 !important;
}

/* ─── ASTRA HEADER ───────────────────────── */
#masthead,
.site-header {
  background: rgba(247,243,236,0) !important;
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 999;
}
.site-header.arlo-scrolled {
  background: rgba(247,243,236,0.96) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--sand) !important;
}
#masthead .site-branding .site-title,
#masthead .site-branding .site-title a {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--espresso) !important;
  text-decoration: none !important;
}
#masthead .main-header-menu .menu-item > a {
  font-family: var(--font-sans) !important;
  font-weight: 300 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--bark) !important;
}
#masthead .main-header-menu .menu-item > a:hover {
  color: var(--espresso) !important;
}

/* ─── ELEMENTOR: quitar padding por defecto de secciones ── */
.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
  padding: 0;
}
.elementor-widget-html { margin: 0; padding: 0; }
.ast-page-title-area { display: none !important; }

/* ══════════════════════════════════════════
   CSS ORIGINAL DEL DISEÑO (idéntico al index.html)
══════════════════════════════════════════ */

/* ─── NAVIGATION (HTML widget) ───────────── */
nav.arlo-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 3.5rem;
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
nav.arlo-nav.scrolled {
  background: rgba(247,243,236,0.96);
  backdrop-filter: blur(8px);
  padding: 1.1rem 3.5rem;
  box-shadow: 0 1px 0 var(--sand);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.9rem;
  text-decoration: none; color: var(--espresso);
}
.nav-logo svg { width: 34px; height: 34px; flex-shrink: 0; transition: transform 0.4s ease; }
.nav-logo:hover svg { transform: rotate(3deg); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--espresso); }
.nav-logo-sub { font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone); margin-top: 0.15rem; }
.nav-links { display: flex; gap: 2.8rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bark); transition: color 0.3s; position: relative; padding-bottom: 3px; }
.nav-links a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--terracotta); transition: width 0.35s ease; }
.nav-links a:hover { color: var(--espresso); }
.nav-links a:hover::after { width: 100%; }

/* ─── HERO ───────────────────────────────── */
#inicio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3.5rem 5.5rem;
  background-color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-ambient {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 55% at 72% 28%, #E8DCC8 0%, transparent 65%), radial-gradient(ellipse 45% 35% at 18% 78%, #E3D9C6 0%, transparent 60%);
  opacity: 0.65;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.hero-rule {
  position: absolute; top: 0; bottom: 0; right: 28%;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--parchment) 20%, var(--parchment) 80%, transparent 100%);
  opacity: 0.5;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  opacity: 0.14; filter: saturate(0.55) sepia(0.25); pointer-events: none;
}
.hero-label {
  position: relative; font-size: 0.62rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero-label::before { content: ""; display: block; width: 2rem; height: 1px; background: var(--terracotta); flex-shrink: 0; }
.hero-heading {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(4rem, 9vw, 9.5rem); line-height: 0.92; letter-spacing: -0.01em;
  color: var(--espresso); position: relative;
  opacity: 0; animation: fadeUp 1s ease forwards 0.6s;
}
.hero-heading em { font-style: italic; color: var(--terracotta); }
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 3.5rem; position: relative;
  opacity: 0; animation: fadeUp 0.9s ease forwards 0.95s;
}
.hero-desc { max-width: 360px; font-size: 0.88rem; line-height: 1.9; color: var(--stone); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--espresso); border-bottom: 1px solid var(--terracotta);
  padding-bottom: 0.35rem; transition: gap 0.3s ease, color 0.3s;
}
.hero-cta:hover { gap: 1.5rem; color: var(--terracotta); }
.hero-scroll-indicator {
  position: absolute; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stone); writing-mode: vertical-rl;
  opacity: 0; animation: fadeIn 1s ease forwards 1.5s;
}
.scroll-track { width: 1px; height: 52px; background: var(--parchment); overflow: hidden; flex-shrink: 0; }
.scroll-track::after { content: ""; display: block; width: 100%; height: 100%; background: var(--terracotta); animation: scrollAnim 2.2s ease-in-out infinite; }

/* ─── SECTION COMPARTIDO ─────────────────── */
.section-label { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.8rem; }
.section-title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.0; color: var(--espresso); letter-spacing: -0.01em; }
.section-title em { font-style: italic; }

/* ─── QUIÉNES SOMOS ──────────────────────── */
#quienes {
  background: var(--linen);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 6rem; align-items: center;
  padding: 8rem 3.5rem;
}
.quienes-left { position: relative; }
.quienes-num { font-family: var(--font-serif); font-size: 10rem; font-weight: 300; color: var(--sand); line-height: 0.85; margin-bottom: -2rem; user-select: none; }
.quienes-right { padding-top: 0.5rem; }
.quienes-body { margin-top: 2rem; font-size: 0.95rem; line-height: 1.95; color: var(--bark); }
.quienes-body p + p { margin-top: 1.2rem; }
.quienes-stats { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--sand); }
.stat-num { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300; color: var(--terracotta); line-height: 1; }
.stat-label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-top: 0.4rem; }
.quienes-photo-wrap { margin-top: 2.5rem; height: 300px; overflow: hidden; }
.quienes-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(0.7) sepia(0.15); transition: transform 0.7s ease; }
.quienes-photo-wrap:hover img { transform: scale(1.03); }

/* ─── SERVICIOS ──────────────────────────── */
#servicios { background: var(--cream); padding: 8rem 3.5rem; }
.servicios-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4.5rem; }
.servicios-intro { max-width: 360px; font-size: 0.88rem; line-height: 1.85; color: var(--stone); }
.servicios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--parchment); }
.servicio-card { background: var(--cream); padding: 3.2rem; position: relative; overflow: hidden; transition: background 0.4s ease; }
.servicio-card:hover { background: var(--linen); }
.servicio-card::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--terracotta); transition: height 0.45s ease; }
.servicio-card:hover::before { height: 100%; }
.servicio-num { font-family: var(--font-serif); font-size: 0.8rem; color: var(--parchment); letter-spacing: 0.12em; margin-bottom: 1.8rem; }
.servicio-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; color: var(--espresso); line-height: 1.1; margin-bottom: 1.1rem; }
.servicio-title em { font-style: italic; color: var(--terracotta); }
.servicio-desc { font-size: 0.87rem; line-height: 1.85; color: var(--stone); }
.servicio-link { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.8rem; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); text-decoration: none; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s, gap 0.3s; }
.servicio-card:hover .servicio-link { opacity: 1; transform: translateX(0); }
.servicio-link:hover { gap: 1rem; }
.servicio-img { margin: -3.2rem -3.2rem 2.2rem -3.2rem; height: 210px; overflow: hidden; }
.servicio-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.72) sepia(0.12); transition: transform 0.65s ease; }
.servicio-card:hover .servicio-img img { transform: scale(1.05); }

/* ─── CONTACTO ───────────────────────────── */
#contacto { background: var(--espresso); display: grid; grid-template-columns: 1fr 1.1fr; gap: 6rem; align-items: start; padding: 8rem 3.5rem; }
#contacto .section-label { color: var(--terracotta); }
#contacto .section-title { color: var(--cream); }
.contacto-tagline { margin-top: 2rem; font-size: 0.9rem; line-height: 1.9; color: var(--stone); max-width: 340px; }
.contacto-datos { margin-top: 2.8rem; display: flex; flex-direction: column; gap: 1.4rem; }
.dato-label { font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.15rem; }
.dato-value { font-family: var(--font-serif); font-size: 1.05rem; color: var(--cream); text-decoration: none; transition: color 0.3s; }
.dato-value:hover { color: var(--terracotta); }
.contacto-form { display: flex; flex-direction: column; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone); font-family: var(--font-sans); font-weight: 300; }
.form-group input, .form-group textarea, .form-group select {
  background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 0.65rem 0; color: var(--cream); font-family: var(--font-sans);
  font-weight: 300; font-size: 0.9rem; outline: none; transition: border-color 0.3s; width: 100%; -webkit-appearance: none; border-radius: 0;
}
.form-group select { color: rgba(255,255,255,0.4); cursor: pointer; }
.form-group select option { background: var(--espresso); color: var(--cream); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--terracotta); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group textarea { resize: none; height: 88px; }
.btn-submit { margin-top: 0.4rem; align-self: flex-start; background: var(--terracotta); color: var(--cream); border: none; padding: 1rem 2.8rem; font-family: var(--font-sans); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.btn-submit:hover { background: var(--clay); transform: translateY(-1px); }
.btn-submit.sent { background: #5a7a5a; cursor: default; }

/* ─── FOOTER (Astra) ─────────────────────── */
#colophon, .site-footer { background-color: var(--espresso) !important; border-top: 1px solid rgba(255,255,255,0.07) !important; padding: 2.2rem 3.5rem !important; }
.site-footer .ast-footer-copyright, .site-footer .ast-footer-copyright p, .site-footer .ast-footer-copyright a { font-size: 0.68rem !important; letter-spacing: 0.06em !important; color: var(--stone) !important; text-decoration: none !important; }
.site-footer .ast-footer-copyright a:hover { color: var(--terracotta) !important; }

/* ─── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollAnim { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  #inicio { padding: 0 1.8rem 4.5rem; }
  .hero-rule { display: none; }
  #quienes { grid-template-columns: 1fr; gap: 2rem; padding: 6rem 1.8rem; }
  .quienes-num { font-size: 6rem; }
  #servicios { padding: 6rem 1.8rem; }
  .servicios-header { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .servicios-grid { grid-template-columns: 1fr; }
  #contacto { grid-template-columns: 1fr; gap: 3.5rem; padding: 6rem 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
}
