/*
Theme Name: Santana Construcciones
Theme URI: https://santanaconstrucciones.uy
Author: Santana Construcciones
Author URI: https://santanaconstrucciones.uy
Description: Tema personalizado para Santana Construcciones - Constructora en Maldonado, Uruguay
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: santana
Tags: one-page, custom-logo, construction, dark
*/

/* ─── Variables ─── */
:root {
  --primary: #ea580c;
  --primary-light: #f97316;
  --primary-glow: rgba(234, 88, 12, 0.3);
  --bg-light: #fafafa;
  --bg-dark: #383838;
  --bg-dark-deeper: #242424;
  --text-light: #f2f2f2;
  --text-light-muted: rgba(242, 242, 242, 0.7);
  --text-light-faint: rgba(242, 242, 242, 0.5);
  --text-dark: #262626;
  --text-muted: #737373;
  --border-light: rgba(255,255,255,0.1);
  --border-dark: #e0e0e0;
  --card-bg: #fff;
  --muted-bg: #ededed;
  --radius: 0.75rem;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ─── Reset / Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 0.95; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Navbar ─── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(56, 56, 56, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-nav .brand { display: flex; align-items: center; gap: 0.5rem; }
.site-nav .brand img { height: 40px; width: 40px; object-fit: contain; }
.site-nav .brand span {
  font-family: var(--font-display); font-size: 1.5rem;
  letter-spacing: 0.1em; color: var(--text-light);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-light-muted); font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle svg { stroke: var(--text-light); }
.mobile-menu {
  display: none; background: var(--bg-dark);
  border-top: 1px solid var(--border-light); padding: 1rem 1.5rem;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block; padding: 0.75rem 0; color: var(--text-light-muted);
  font-weight: 500; text-transform: uppercase; font-size: 0.85rem;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(56, 56, 56, 0.7);
}
.hero-content {
  position: relative; z-index: 2; padding: 4rem 1.5rem;
}
.hero-subtitle {
  color: rgba(234, 88, 12, 0.6); font-size: 0.85rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display); color: var(--text-light);
  font-size: clamp(2.5rem, 8vw, 6rem); line-height: 0.95; margin-bottom: 0.25rem;
}
.hero h1 span {
  color: var(--primary);
  font-size: clamp(2rem, 6vw, 4.5rem);
}
.hero-line {
  width: 4rem; height: 2px; background: var(--primary);
  margin: 1.5rem auto;
}
.hero-text {
  color: var(--text-light-faint); font-size: 1rem;
  max-width: 28rem; margin: 0 auto 2.5rem; font-weight: 300;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 2rem; background: var(--primary); color: #fff;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: var(--radius);
  border: none; cursor: pointer; transition: opacity 0.3s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(242,242,242,0.2); color: rgba(242,242,242,0.8);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: var(--radius);
  background: transparent; cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ─── Section Common ─── */
.section-dark { background: var(--bg-dark); padding: 5rem 0; }
.section-light { background: var(--bg-light); padding: 5rem 0; }
.section-muted { background: var(--muted-bg); padding: 5rem 0; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  color: rgba(234,88,12,0.6); font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
}
.section-title {
  font-family: var(--font-display); color: var(--primary);
  font-size: clamp(2rem, 5vw, 3.75rem); margin-top: 0.75rem;
}
.section-subtitle {
  color: var(--text-muted); font-weight: 300; margin-top: 0.5rem;
}

/* Dark section text variants */
.section-dark .section-tag { color: rgba(234,88,12,0.6); }
.section-dark .section-subtitle { color: var(--text-light-faint); }

/* ─── About ─── */
.about-text {
  max-width: 48rem; margin: 0 auto;
}
.about-text p {
  color: var(--text-light-muted); font-size: 1rem;
  line-height: 1.8; font-weight: 300; margin-bottom: 1.25rem;
}
.highlights { max-width: 48rem; margin: 0 auto; }
.highlight-item {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.highlight-item svg { color: var(--primary); flex-shrink: 0; width: 20px; height: 20px; }
.highlight-item span {
  color: rgba(242,242,242,0.9); font-style: italic;
}

/* ─── Stats ─── */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 60rem; margin: 0 auto;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border-dark); text-align: center;
}
.stat-number { font-family: var(--font-display); font-size: 3rem; color: var(--primary); }
.stat-label { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-dark); margin-top: 0.5rem; }
.stat-line { width: 2rem; height: 2px; background: var(--primary); margin: 0.75rem auto; }
.stat-text { color: var(--text-muted); font-size: 0.85rem; }

/* ─── Diferencial ─── */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 60rem; margin: 0 auto;
}
@media (max-width: 768px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--border-dark);
  text-align: center; transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.diff-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); border-color: rgba(234,88,12,0.2); }
.diff-card svg { color: var(--primary); margin: 0 auto 1.25rem; width: 36px; height: 36px; stroke-width: 1.5; }
.diff-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-dark); margin-bottom: 0.75rem; }
.diff-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }

/* ─── Projects / Map ─── */
.map-wrap {
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  height: 520px;
}
@media (max-width: 768px) { .map-wrap { height: 350px; } }

.project-thumbs {
  display: flex; gap: 0.75rem; overflow-x: auto;
  margin-top: 1.5rem; padding-bottom: 0.5rem;
}
.project-thumb {
  flex-shrink: 0; position: relative; border-radius: 0.5rem;
  overflow: hidden; width: 150px; height: 95px;
  border: 2px solid var(--border-light); cursor: pointer;
  transition: border-color 0.3s;
}
.project-thumb:hover, .project-thumb.active { border-color: var(--primary); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb .thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.5rem; font-size: 0.7rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

/* Project Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.active { display: flex; }
@media (max-width: 768px) {
  .modal-overlay.active { align-items: flex-end; padding: 0; }
}

.modal-content {
  background: var(--bg-dark-deeper); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; max-width: 48rem; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
}
@media (max-width: 768px) {
  .modal-content { border-radius: 1rem 1rem 0 0; max-height: 95vh; }
}

.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  background: rgba(0,0,0,0.6); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.modal-close:hover { transform: scale(1.1); }
.modal-close svg { stroke: #fff; width: 18px; height: 18px; }

.modal-gallery { position: relative; height: 280px; overflow: hidden; }
@media (max-width: 768px) { .modal-gallery { height: 200px; } }
.modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
.modal-gallery .gallery-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, var(--bg-dark-deeper) 0%, transparent 100%);
}
.modal-gallery .gallery-info {
  position: absolute; bottom: 0.75rem; left: 1.5rem; right: 1.5rem; z-index: 2;
}
.modal-gallery .type-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  background: var(--primary); color: #fff; margin-bottom: 0.5rem;
}
.modal-gallery .project-title {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1;
}

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.gallery-nav svg { stroke: #fff; width: 18px; height: 18px; }
.gallery-nav.prev { left: 0.75rem; }
.gallery-nav.next { right: 0.75rem; }

.gallery-dots {
  position: absolute; bottom: 4.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.375rem; z-index: 5;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.4); transition: all 0.3s;
}
.gallery-dot.active { background: var(--primary); transform: scale(1.3); }

.gallery-thumbs {
  display: flex; gap: 0.5rem; padding: 0.75rem 1.5rem; overflow-x: auto;
}
.gallery-thumb {
  flex-shrink: 0; width: 72px; height: 50px; border-radius: 0.5rem;
  overflow: hidden; border: 2px solid transparent; cursor: pointer;
  opacity: 0.5; transition: all 0.3s;
}
.gallery-thumb.active { border-color: var(--primary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-body { padding: 1.5rem; }
.modal-body > * + * { margin-top: 1.25rem; }

.quick-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
@media (min-width: 768px) { .quick-stats { grid-template-columns: repeat(4, 1fr); } }
.quick-stat {
  padding: 0.75rem; border-radius: 0.5rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.quick-stat .stat-icon { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.25rem; }
.quick-stat .stat-icon svg { width: 12px; height: 12px; stroke: var(--primary); }
.quick-stat .stat-icon span {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
}
.quick-stat .stat-value { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.85); }

.room-counts { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.room-count { display: flex; align-items: center; gap: 0.5rem; }
.room-count svg { width: 16px; height: 16px; stroke: var(--primary); }
.room-count span { font-size: 0.85rem; color: var(--text-light-muted); }

.modal-divider { height: 1px; background: rgba(255,255,255,0.06); }

.modal-section-title {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--primary); margin-bottom: 0.5rem;
}
.modal-description {
  font-size: 0.85rem; line-height: 1.7; font-weight: 300;
  color: rgba(255,255,255,0.6);
}

.materials-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.material-tag {
  font-size: 0.75rem; padding: 0.375rem 0.75rem; border-radius: 999px;
  background: rgba(234,88,12,0.1); color: #f97316;
  border: 1px solid rgba(234,88,12,0.2);
}

.modal-cta {
  display: inline-flex; width: 100%; align-items: center; justify-content: center;
  padding: 0.875rem 1.5rem; background: var(--primary); color: #fff;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: var(--radius);
  border: none; cursor: pointer; transition: opacity 0.3s;
}
.modal-cta:hover { opacity: 0.9; }
@media (min-width: 768px) { .modal-cta { width: auto; } }

.other-projects { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.other-project {
  flex-shrink: 0; width: 140px; cursor: pointer; border: none;
  background: none; text-align: left;
}
.other-project .thumb {
  width: 100%; height: 95px; border-radius: 0.75rem; overflow: hidden;
  border: 1px solid var(--border-light); margin-bottom: 0.5rem;
}
.other-project .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.other-project:hover .thumb img { transform: scale(1.05); }
.other-project .name {
  font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.9);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.other-project .meta {
  font-size: 0.65rem; color: rgba(255,255,255,0.4); margin-top: 0.125rem;
}

/* ─── FAQ ─── */
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(242,242,242,0.15); border-radius: var(--radius);
  padding: 0 1.25rem; background: var(--bg-dark); margin-bottom: 0.75rem;
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 1rem 0; display: flex; align-items: center; justify-content: space-between;
  color: rgba(242,242,242,0.9); font-size: 0.85rem; font-weight: 500;
  text-align: left; transition: color 0.3s;
}
.faq-question:hover { color: var(--primary); }
.faq-question svg { flex-shrink: 0; width: 16px; height: 16px; stroke: var(--text-light-muted); transition: transform 0.3s; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p {
  padding-bottom: 1rem; color: var(--text-light-faint);
  font-size: 0.85rem; line-height: 1.7; font-weight: 300;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 50rem; margin: 0 auto;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 2rem; border-radius: var(--radius); background: var(--card-bg);
  border: 1px solid var(--border-dark); transition: all 0.3s;
}
.contact-card:hover { border-color: rgba(234,88,12,0.3); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.contact-card svg { color: var(--primary); width: 28px; height: 28px; stroke-width: 1.5; transition: transform 0.3s; }
.contact-card:hover svg { transform: scale(1.1); }
.contact-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-dark); }
.contact-card span { color: var(--text-muted); font-size: 0.85rem; text-align: center; }

/* Contact form */
.contact-form {
  max-width: 36rem; margin: 2.5rem auto 0;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 0.375rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem; font-size: 0.9rem;
  border: 1px solid var(--border-dark); border-radius: var(--radius);
  background: var(--card-bg); color: var(--text-dark);
  font-family: var(--font-body); transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 0.5rem; }

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-dark); padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
}
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { height: 32px; width: 32px; object-fit: contain; }
.footer-brand span {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--text-light); letter-spacing: 0.1em;
}
.footer-copy { color: var(--text-light-faint); font-size: 0.8rem; }

/* ─── Leaflet overrides ─── */
.leaflet-container { font-family: var(--font-body); }
