/* =============================================
   KEVIN PELÁEZ CRUZADO — SITIO WEB PREMIUM
   Design System: Dark Mode + Gold Accents
   ============================================= */

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

/* === VARIABLES === */
:root {
  --bg-primary:    #030304;
  --bg-secondary:  #0a0a0c;
  --bg-card:       rgba(255,255,255,0.02);
  --bg-card-hover: rgba(255,255,255,0.04);
  --border:        rgba(255,255,255,0.05);
  --border-hover:  rgba(212,175,55,0.3);
  --gold:          #D4AF37;
  --gold-light:    #F3E5AB;
  --gold-dim:      rgba(212,175,55,0.1);
  --blue:          #4f8ef7;
  --blue-dim:      rgba(79,142,247,0.12);
  --text-primary:  #F8F9FA;
  --text-secondary:#A0AAB2;
  --text-muted:    #5A646E;
  --glass:         rgba(255,255,255,0.02);
  --glass-border:  rgba(255,255,255,0.04);
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-gold:   0 10px 40px rgba(212,175,55,0.08);
  --shadow-card:   0 10px 40px rgba(0,0,0,0.5);
  --transition:    all 0.4s cubic-bezier(0.25,0.1,0.25,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === ANIMATED BACKGROUND === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(79,142,247,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(5,5,8,0) 0%, var(--bg-primary) 100%);
  pointer-events: none;
  z-index: 0;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-secondary); line-height: 1.8; font-weight: 300; }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5,5,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.navbar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #050508;
  letter-spacing: -0.02em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.navbar-links a:hover { color: var(--text-primary); }
.navbar-links a:hover::after { width: 100%; }

.navbar-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #050508 !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.8rem !important;
}

.navbar-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(201,168,76,0.4); }
.navbar-cta::after { display: none !important; }

.navbar-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 3rem;
  align-items: center;
  min-height: 80vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-quote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0 2rem;
  font-style: italic;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-meta-item svg { color: var(--gold); width: 16px; height: 16px; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #030304 !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.4);
  color: #030304 !important;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
  color: var(--gold);
}

/* === HERO RIGHT PANEL === */
.hero-right {
  position: relative;
}

.hero-photo-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
}

.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold), transparent, var(--blue));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  filter: grayscale(10%) contrast(1.05);
}

.hero-card {
  position: absolute;
  background: rgba(12,12,23,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.hero-card-stats {
  bottom: -1.5rem;
  left: -1.5rem;
  display: flex;
  gap: 1.5rem;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.hero-card-badge {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  background: var(--bg-primary);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* === DIVIDER === */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* === ABOUT SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.25rem; line-height: 1.9; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s ease;
}

.about-image:hover img { transform: scale(1.03); }

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* === OBRAS === */
.obras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.obra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.obra-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.obra-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.obra-role {
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.obra-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.obra-card h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.obra-client {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === BLOG SECTION === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.blog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image { transform: scale(1.05); }

.blog-card-image-wrapper {
  overflow: hidden;
  height: 180px;
  background: linear-gradient(135deg, #0d0d1a, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image-placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-cat {
  background: var(--blue-dim);
  border: 1px solid rgba(79,142,247,0.2);
  color: var(--blue);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
}

.blog-card-link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.blog-card-link:hover { gap: 0.7rem; color: var(--gold-light); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 2rem; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-gold);
}

.contact-link-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-link-text { flex: 1; }
.contact-link-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.contact-link-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: #0c0c17; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}

.footer-brand span { color: var(--gold); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  border-color: var(--border-hover);
  background: var(--gold-dim);
}

/* === BLOG PAGE === */
.blog-header {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
}

.blog-header h1 { margin-bottom: 1rem; }
.blog-header p { max-width: 500px; margin: 0 auto; }

.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-dim);
  border-color: rgba(201,168,76,0.3);
  color: var(--gold);
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 80px;
}

/* === ARTICLE PAGE === */
.article-header {
  padding-top: 140px;
  padding-bottom: 60px;
  max-width: 800px;
  margin: 0 auto;
}

.article-header .blog-cat { margin-bottom: 1.5rem; display: inline-block; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.article-header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-author-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #050508;
}

.article-author-name { font-size: 0.875rem; font-weight: 600; }
.article-author-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.article-content h2, .article-content h3, .article-content h4 {
  margin: 2rem 0 1rem;
}

.article-content p { margin-bottom: 1.25rem; line-height: 1.9; }
.article-content ul, .article-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}
.article-content li { margin-bottom: 0.5rem; line-height: 1.8; }

.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--gold-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content a { color: var(--gold); text-decoration: underline; }
.article-content strong { color: var(--text-primary); font-weight: 600; }

.article-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.article-cta h3 { margin-bottom: 0.75rem; }
.article-cta p { margin-bottom: 1.5rem; }

/* === OBRAS PAGE === */
.obras-page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
}

.obras-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 80px;
}

/* === UTILS === */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  transition: var(--transition);
}

.view-all-link:hover {
  background: var(--gold-dim);
  gap: 0.8rem;
  color: var(--gold);
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 100ms); }

/* === BREADCRUMBS === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--gold); }

/* === ALERT === */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  border: 1px solid;
}

.alert-success {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #4ade80;
}

.alert-error {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: rgba(12,12,23,0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  z-index: 200;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
}

.mobile-menu-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.mobile-menu-links a:hover { color: var(--gold); }

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
}

.mobile-overlay.open { display: block; }

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.page-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.page-btn:hover, .page-btn.active {
  border-color: var(--border-hover);
  background: var(--gold-dim);
  color: var(--gold);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { max-width: 380px; margin: 0 auto; margin-bottom: 2rem; }
  .hero-photo { aspect-ratio: 4/3; }
  .hero-card-stats { bottom: -1.5rem; top: auto; left: 50%; right: auto; transform: translateX(-50%); width: 90%; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .obras-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .blog-list-grid { grid-template-columns: repeat(2, 1fr); }
  .obras-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-menu-btn { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .obras-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-list-grid { grid-template-columns: 1fr; }
  .obras-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .section { padding: 70px 0; }
  .contact-form { padding: 1.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .article-header-meta { flex-direction: column; align-items: flex-start; }
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: pulse-wa 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* === TEMA CLARO PREMIUM (LIGHT MODE) === */
[data-theme="light"] {
  --bg-primary: #F8F9FA;
  --bg-secondary: #E9ECEF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F3F5;
  --gold: #B8860B;
  --gold-light: #9B700A;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6C757D;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(184, 134, 11, 0.5);
  --glass: rgba(0, 0, 0, 0.05);
  --glass-border: rgba(0, 0, 0, 0.1);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* === ULTRA PREMIUM UPGRADES === */
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; font-weight: 600; letter-spacing: -0.02em; }
#scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--gold); z-index: 99999; transition: width 0.1s ease; }
.navbar.scrolled { background-color: rgba(10, 10, 15, 0.7) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
[data-theme='light'] .navbar.scrolled { background-color: rgba(255, 255, 255, 0.75) !important; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
@keyframes mesh { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero { position: relative; background: linear-gradient(-45deg, #0a0a0f, #14141e, #1a1a2e, #0f0f18); background-size: 400% 400%; animation: mesh 15s ease infinite; }
[data-theme='light'] .hero { background: linear-gradient(-45deg, #f8f9fa, #e9ecef, #f1f3f5, #ffffff); background-size: 400% 400%; animation: mesh 15s ease infinite; }
.custom-cursor { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 100000; transform: translate(-50%, -50%); transition: opacity 0.3s; }
.custom-cursor-follower { position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s; }
body:hover .custom-cursor, body:hover .custom-cursor-follower { opacity: 1; }
.cursor-hover .custom-cursor-follower { width: 60px; height: 60px; background: rgba(212, 175, 55, 0.1); }
@media (max-width: 768px) { .custom-cursor, .custom-cursor-follower { display: none !important; } }

/* === GOD TIER UPGRADES (FASE 6) === */

/* 1. Scrollbar Personalizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
[data-theme='light'] ::-webkit-scrollbar-track { background: var(--bg-primary); }

/* 2. Parallax Background */
.hero { background-attachment: fixed !important; }

/* 3. Glow Effect Cards (CSS Vars set by JS) */
.obra-card, .service-card { position: relative; overflow: hidden; }
.obra-card::before, .service-card::before {
  content: ""; position: absolute; top: var(--y, 0); left: var(--x, 0);
  width: 300px; height: 300px;
  background: radial-gradient(circle closest-side, rgba(212, 175, 55, 0.15), transparent);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0; pointer-events: none; z-index: 0;
}
/* === FASE 7: AUTOMATIZACION Y ACCESIBILIDAD === */
.whatsapp-widget-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.whatsapp-chat-bubble { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); width: 250px; box-shadow: var(--shadow-card); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.whatsapp-chat-bubble.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.whatsapp-chat-header { background: #25D366; color: #fff; padding: 10px 15px; border-radius: var(--radius-md) var(--radius-md) 0 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.whatsapp-close { cursor: pointer; font-size: 1.2rem; line-height: 1; }
.whatsapp-chat-body { padding: 15px; font-size: 0.85rem; color: var(--text-primary); }
.whatsapp-float { position: relative !important; bottom: 0 !important; right: 0 !important; }

/* Focus para navegacion por teclado */
*:focus-visible { outline: 2px solid var(--gold) !important; outline-offset: 4px; border-radius: 4px; }
