/*
Theme Name: Gustto Theme
Theme URI: https://gustto.com
Author: Gustto
Author URI: https://gustto.com
Description: Tema oficial de Gustto - Venta, alquiler y repuestos Jura en Guatemala
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 8.0
License: Proprietary
License URI: #
Text Domain: gustto-theme
Tags: business, custom-menu, custom-logo, featured-images, full-width-template, responsive-layout
*/

/* ============================================================
   GUSTTO THEME - VARIABLES & RESET
   ============================================================ */
:root {
  --green-dark:   #1B6B37;
  --green-mid:    #2A8B49;
  --green-light:  #3AAD5C;
  --green-pale:   #E8F5EC;
  --black:        #111111;
  --gray-dark:    #2C2C2C;
  --gray-mid:     #5A5A5A;
  --gray-light:   #F4F4F2;
  --white:        #FFFFFF;
  --accent:       #D4F0DE;
  --border:       rgba(27,107,55,0.18);
  --shadow-soft:  0 4px 24px rgba(27,107,55,0.10);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.08);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::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(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid rgba(27,107,55,0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 90px 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,107,55,0.30);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
  background: var(--green-pale);
}

.nav-cta {
  margin-left: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--green-dark); background: var(--green-pale); }
.mobile-nav .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0e3d1f 0%, #1B6B37 45%, #2A8B49 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='60' height='60' fill='none'/%3E%3Cpath d='M0 0L60 60M60 0L0 60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  display: block;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero h1 em {
  font-style: normal;
  color: var(--green-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(8px);
  text-align: center;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  width: min(220px, 100%);
  margin: 0 auto;
}

.hero-badge {
  margin-top: 16px;
  background: rgba(58,173,92,0.2);
  border: 1px solid rgba(58,173,92,0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-badge > div {
  text-align: left;
  width: 100%;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-badge {
  margin-top: 16px;
  background: rgba(58,173,92,0.2);
  border: 1px solid rgba(58,173,92,0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(58,173,92,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hero-badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.hero-badge-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ============================================================
   SERVICES / SERVICIOS
   ============================================================ */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-dark);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover {
  border-color: rgba(27,107,55,0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 28px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--green-dark);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover { gap: 10px; }

/* ============================================================
   ABOUT / SOBRE NOSOTROS
   ============================================================ */
.about {
  background: var(--gray-light);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-placeholder {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  letter-spacing: -0.04em;
}

.about-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.about-float-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

.about-float-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-mid);
  margin-top: 4px;
}

.about-content .section-tag { margin-bottom: 1rem; }

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1.25rem;
}

.about-content p {
  font-size: 0.97rem;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-dark);
}

.about-feature::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid var(--green-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%231B6B37' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ============================================================
   MARCAS / JURA
   ============================================================ */
.brands {
  background: var(--green-dark);
  padding: 60px 0;
}

.brands-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.brands-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.brand-logo {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.brand-logo:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.92rem;
  color: var(--gray-dark);
  line-height: 1.5;
}

.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
  width: 100%;
  height: 460px;
  border: none;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-light);
  background: rgba(58,173,92,0.15);
  border: 1px solid rgba(58,173,92,0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

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

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero p { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section-pad { padding: 60px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about-features { grid-template-columns: 1fr; }
  .brands-inner { justify-content: center; }
}
