/* ===================================
   COLOR & TÉCNICA - SISTEMA VISUAL
   Plantilla 3: Autoridad Profesional
   =================================== */

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

:root {
  /* Colors */
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #141414;
  --text-muted: #5e6472;
  --accent: #2a7f6f;
  --accent-hover: #236859;
  --accent-light: #e8f5f2;
  --border: rgba(0, 0, 0, 0.08);
  --overlay: rgba(0, 0, 0, 0.6);
  
  /* Spacing */
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  
  /* Typography */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Transitions */
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: clamp(16px, 1.125vw, 18px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(34px, 5vw, 64px);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(42, 127, 111, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 127, 111, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-large svg {
  width: 24px;
  height: 24px;
}

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  border: 1px solid rgba(42, 127, 111, 0.2);
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: opacity var(--transition);
  cursor: pointer;
}

.nav-logo:hover {
  opacity: 0.85;
}

.logo-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* === SECTIONS === */
section {
  padding-block: clamp(48px, 7vw, 112px);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #ffffff 100%);
  padding-top: 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

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

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* === BEFORE/AFTER === */
.before-after {
  background: white;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.ba-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.ba-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 1rem 1rem 0;
  border-radius: var(--radius-sm);
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 1rem;
}

.ba-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.ba-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--overlay);
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ba-description {
  padding: 1rem 1.5rem 1.5rem;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.service-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-ideal {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

/* === PROCESS === */
.process {
  background: white;
}

.process-steps {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-size: 28px;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(42, 127, 111, 0.2);
}

.step-content h3 {
  font-size: 22px;
  margin-bottom: 0.75rem;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* === PRICING === */
.pricing {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

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

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.price {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.price span {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-top: 0.5rem;
}

.price-includes {
  list-style: none;
  padding: 0;
}

.price-includes li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}

.price-includes li:first-child {
  border-top: none;
  padding-top: 0;
}

.pricing-note {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--accent-light);
  border-radius: var(--radius);
  border: 1px solid rgba(42, 127, 111, 0.2);
}

.pricing-note p {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.pricing-note strong {
  color: var(--accent);
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--accent-light) 0%, #ffffff 100%);
  text-align: center;
}

.cta-content h2 {
  max-width: 700px;
  margin: 0 auto 1rem;
}

.cta-content p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* === CONTACT === */
.contact {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.contact-item strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-item p {
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.contact-item a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

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

.contact-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === FOOTER === */
.footer {
  background: var(--text);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 24px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-bottom: 0.5rem;
}

.footer-city {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-top: 1rem;
}

.footer-contact h4,
.footer-hours h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-contact p,
.footer-hours p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--accent-light);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-legal-links span {
  color: rgba(255, 255, 255, 0.3);
}

/* Footer minimal (para páginas legales) */
.footer-minimal {
  padding: 2rem 0;
  text-align: center;
}

.footer-minimal p {
  margin: 0;
  font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .ba-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .nav-toggle {
    display: flex;
  }
  
  .logo-main {
    font-size: 20px;
  }
  
  .logo-tagline {
    font-size: 10px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .ba-images {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* === LEGAL PAGES === */
.legal-page {
  background: white;
  min-height: 70vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 2rem;
  color: var(--text);
}

.legal-content h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.legal-content h3 {
  font-size: clamp(18px, 2vw, 24px);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 1rem 0 1rem 2rem;
}

.legal-content li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content em {
  color: var(--text-muted);
  font-style: italic;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.legal-footer p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 14px;
}

/* === COOKIE NOTICE === */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: white;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-notice p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

.cookie-notice a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-notice a:hover {
  color: white;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cookie-notice-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-notice .btn {
    width: 100%;
  }
}
