/*
Theme Name: Estambilo Theme
Template: hello-elementor
Description: Tema hijo de Hello Elementor para Estambilo
Version: 1.0
*/

/* ===========================
   VARIABLES GLOBALES
=========================== */
:root {
  --color-primary:    #1A2E1A;
  --color-accent:     #27AE60;
  --color-accent-light: #2ECC71;
  --color-accent-dark:#0D5C2E;
  --color-bg:         #FFFFFF;
  --color-bg-soft:    #F7FAF7;
  --color-bg-dark:    #1A2E1A;
  --color-text:       #1C1C1C;
  --color-text-light: #6B7B6B;
  --color-white:      #FFFFFF;
  --color-border:     #E2EEE2;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --radius:    8px;
  --shadow:    0 2px 16px rgba(26,46,26,0.08);
  --shadow-lg: 0 6px 32px rgba(26,46,26,0.12);
  --transition: 0.22s ease;
}

/* ===========================
   RESET Y BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

/* ===========================
   TIPOGRAFÍA
=========================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1rem; color: var(--color-text); }

/* ===========================
   HEADER / NAV
=========================== */
.site-header,
header.elementor-section {
  background: var(--color-white) !important;
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(26,46,26,0.06);
}

/* ===========================
   BOTONES
=========================== */
.btn,
.elementor-button,
a.elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1;
}

/* Primario */
.elementor-button.btn-primary,
.elementor-button-link.btn-primary {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-accent) !important;
}
.elementor-button.btn-primary:hover {
  background: var(--color-accent-dark) !important;
  border-color: var(--color-accent-dark) !important;
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Secundario */
.elementor-button.btn-secondary {
  background: transparent !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
.elementor-button.btn-secondary:hover {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
}

/* ===========================
   SECCIONES
=========================== */
.section-light  { background: var(--color-bg); }
.section-white  { background: var(--color-white); }
.section-dark   { background: var(--color-primary); color: var(--color-white); }
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p  { color: var(--color-white); }
.section-accent { background: var(--color-accent-dark); color: var(--color-white); }
.section-accent h2,
.section-accent p { color: var(--color-white); }

/* ===========================
   HERO
=========================== */
.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(39,174,96,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(39,174,96,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section h1 { color: var(--color-primary); }
.hero-section .hero-subtitle { color: var(--color-text-light); font-size: 1.2rem; }
.hero-accent { color: var(--color-accent); }

/* ===========================
   FRANJA DE STATS
=========================== */
.stats-bar {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
}
.stats-bar .stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.stats-bar .stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
}

/* ===========================
   TARJETAS DE SERVICIO
=========================== */
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(46,204,113,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

/* ===========================
   PASOS / PROCESO
=========================== */
.step-number {
  width: 48px; height: 48px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

/* ===========================
   TESTIMONIOS
=========================== */
.testimonial-card {
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-text-light);
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.testimonial-author { font-weight: 700; color: var(--color-primary); }

/* ===========================
   SECCIÓN CTA FINAL
=========================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-primary));
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2, .cta-section p { color: var(--color-white); }

/* ===========================
   FORMULARIO CONTACTO
=========================== */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
  outline: none;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
}
.wpcf7 input[type="submit"] {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: auto;
  padding: 0.875rem 2.5rem;
  transition: all var(--transition);
}
.wpcf7 input[type="submit"]:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ===========================
   FOOTER
=========================== */
.site-footer,
footer {
  background: var(--color-primary) !important;
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
}
footer h4, footer strong { color: rgba(255,255,255,0.90); }
footer a { color: var(--color-accent-light); text-decoration: none; }
footer a:hover { color: var(--color-white); }
.footer-logo { filter: brightness(0) invert(1); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 2rem 0 1.25rem;
}

/* ===========================
   BADGE SOSTENIBILIDAD
=========================== */
.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.30);
  color: var(--color-accent-dark);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ===========================
   ANIMACIONES SUAVES
=========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .hero-section { min-height: 80vh; padding: 4rem 1.5rem; }
  .stats-bar .stat-number { font-size: 1.5rem; }
  .service-card { padding: 1.5rem; }
}
