/*
Theme Name: Castro Yeso
Theme URI: https://castro-yeso.uy
Author: Castro Yeso
Author URI: https://castro-yeso.uy
Description: Tema custom 100% para Castro Yeso - Instalaciones en Yeso. Con bloques ACF reutilizables.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: castro-yeso
Test: Deploy STG - 10 Abril 2026
*/

/* ============================================
   CSS GLOBAL - Castro Yeso Theme
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: #F4F2EF;
  color: #1C1C1A;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

:root {
  --blue: #1A2B4A;
  --blue-mid: #243D6B;
  --blue-light: #E8EDF5;
  --bg: #F4F2EF;
  --bg2: #ECEAE6;
  --bg3: #E2DED8;
  --white: #FAFAF8;
  --charcoal: #1C1C1A;
  --mid: #6B6860;
  --light: #9C9890;
  --border: rgba(28,28,26,0.08);
  --border-light: rgba(28,28,26,0.05);
  --wa: #25D366;
}

h1,h2,h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--charcoal); }
h1 { font-size: clamp(44px, 6.5vw, 84px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
h2 { font-size: clamp(28px, 3.5vw, 48px); }
h3 { font-size: clamp(15px, 1.6vw, 18px); font-weight: 700; }
p { font-weight: 300; line-height: 1.78; color: var(--mid); font-size: 15px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--blue); flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-mid); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-outline-white { background: transparent; color: rgba(255,255,255,0.75); border: 1.5px solid rgba(255,255,255,0.25); }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid rgba(28,28,26,0.2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-wa { background: var(--wa); color: #fff; font-size: 13px; padding: 15px 32px; }
.btn-wa:hover { filter: brightness(1.08); }
.btn-lg { padding: 16px 36px; font-size: 13px; }

/* HEADER - Fixed siempre, cambia estilo al scrollear */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; background: #fff;
  border-bottom: 1px solid rgba(28,28,26,0.08);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.site-header.is-scrolled {
  background: rgba(244,242,239,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img img { width: auto; height: 50px; object-fit: contain; }
.nav-mark { width: 44px; height: 44px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-name { font-size: 17px; font-weight: 700; color: var(--charcoal); letter-spacing: -0.02em; }
.nav-sub { font-size: 10px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--light); display: block; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; margin: 0; padding: 0; }
.nav-link, .nav-links a { 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--mid); 
  cursor: pointer; 
  transition: color 0.15s; 
  text-decoration: none;
  display: inline-block;
}
.nav-link:hover, .nav-links a:hover { color: var(--charcoal); cursor: pointer; }
.nav-cta { background: var(--blue); color: #fff; padding: 12px 24px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: none; cursor: pointer; font-family: 'Outfit', sans-serif; transition: background 0.2s; }
.nav-cta:hover { background: var(--blue-mid); }

/* SECTIONS */
.section { padding: 96px 6%; }
.section-alt { background: var(--bg2); }
.section-white { background: var(--white); }
.section-blue { background: var(--blue); }
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .eyebrow { justify-content: center; }
.section-intro { margin-top: 14px; max-width: 580px; }
.section-intro-center { margin: 14px auto 0; max-width: 580px; text-align: center; }

/* FOOTER MODERNO */
.site-footer {
  background: #0A1220;
  color: rgba(255,255,255,0.7);
  font-family: 'Outfit', sans-serif;
}

.footer-container {
  margin: 0 auto;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 320px;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: #25D366;
  color: #fff;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.4);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 6%;
}

.footer-bottom .footer-container {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin: 0;
}

.footer-credits {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.footer-credits a {
  color: #7CB342;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-credits a:hover {
  color: #9CCC65;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.25s ease;
  border-radius: 1px;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(244, 242, 239, 0.98);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  gap: 0;
  background: rgba(244,242,239,0.95);
}

.mobile-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 28, 26, 0.08);
  transition: color 0.2s;
}

.mobile-link:last-of-type {
  border-bottom: none;
}

.mobile-link:hover {
  color: var(--blue);
}

.mobile-cta {
  display: inline-flex;
  margin-top: 30px;
  padding: 16px 32px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.mobile-cta:hover {
  background: var(--blue-mid);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .section { padding: 72px 5%; }
  .site-header { padding: 0 4%; }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 5%;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-bottom .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-overlay {
    display: block;
  }
  
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  
  .site-header {
    padding: 0 16px;
    height: 70px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 5%;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 12px;
  }
  
  .nav-logo-img img {
    height: 40px;
  }
  
  .nav-name {
    font-size: 15px;
  }
  
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
}
/* Deploy STG: Test 10:39 */
/* Test STG Auto: 10:39 */
/* Test: Deploy automático 10:48 */
/* Test SSH Deploy: 10:52:16 */
/* Deploy RSA Test: 10:55:54 */
