/*
Theme Name: SaniClean — Servicio de Limpieza y Control de Plagas
Theme URI: https://saniclean.com
Author: nickramen
Author URI: https://nickramen.com
Description: Tema personalizado para SaniClean. Compatible con Elementor y shortcodes personalizados.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: saniclean
*/

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

/* ══════════════════════════════
   VARIABLES
══════════════════════════════ */
:root {
  --sc-azul: #1a7fe8;
  --sc-azul-dark: #2c5484;
  --sc-azul-navy: #083a6b;
  --sc-azul-light: #79a1d1;
  --sc-azul-pale: #ecf2f8;

  --sc-verde: #2da84a;
  --sc-verde-hover: #307232;
  --sc-verde-light: #7cbf7e;

  --sc-negro: #0d1b2a;
  --sc-gris: #5a6c7d;
  --sc-blanco: #ffffff;

  --sc-font: "Outfit", sans-serif;
  --sc-max-width: 1400px;
  --sc-gutter: 2.5rem;

  --sc-radius-sm: 6px;
  --sc-radius-md: 12px;
  --sc-radius-pill: 999px;

  --sc-t: 0.2s ease;
}

/* ══════════════════════════════
   RESET
══════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sc-font);
  background: #fff;
  color: var(--sc-negro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
i {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════ */
.sc-wa {
  position: fixed;
  bottom: 6rem;
  right: 1.75rem;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: var(--sc-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition:
    transform var(--sc-t),
    box-shadow var(--sc-t);
}
.sc-wa:hover {
  transform: translateY(-3px);
}
.sc-wa i {
  font-size: 1.4rem;
  color: #fff;
}

/* ══════════════════════════════
   OVERLAY
══════════════════════════════ */
.sc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--sc-t),
    visibility var(--sc-t);
}
.sc-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ══════════════════════════════
   MOBILE MENU
══════════════════════════════ */
.sc-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: #fff;
  z-index: 998;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.sc-mobile-menu.is-active {
  transform: translateX(0);
}

/* Mobile header bar */
.sc-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--sc-azul);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.sc-mobile-logo img {
  height: 36px;
}

/* custom-logo link inside mobile header */
.sc-mobile-logo .custom-logo-link img {
  height: 36px;
  width: auto;
}

.sc-mobile-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--sc-radius-sm);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--sc-t);
}
.sc-mobile-close:hover {
  border-color: #fff;
  color: #fff;
}
.sc-mobile-close i {
  font-size: 0.9rem;
}

/* Nav links */
.sc-mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sc-mobile-link {
  display: block;
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sc-verde) !important;
  transition:
    color var(--sc-t),
    background var(--sc-t),
    padding-left var(--sc-t);
}
.sc-mobile-link:hover {
  color: var(--sc-azul);
  background: var(--sc-azul-pale);
  padding-left: 1.8rem;
}
.sc-mobile-link.is-active {
  color: var(--sc-azul) !important;
  background: var(--sc-azul-pale);
  font-weight: 700;
}

/* CTA bottom */
.sc-mobile-cta {
  padding: 1.25rem 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.sc-mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--sc-radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #25d366;
  transition: background var(--sc-t);
}
.sc-mobile-cta-btn:hover {
  background: #1ea855;
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

/* ══════════════════════════════
   NAVBAR
   — Azul oscuro, sin topbar
   — Logo izq | links centro | WhatsApp pill verde der
══════════════════════════════ */
.sc-navbar {
  background: var(--sc-azul);
  top: 0;
  z-index: 100;
}

.sc-navbar-inner {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  padding: 0 var(--sc-gutter);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.sc-navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sc-navbar-logo img {
  height: 50px;
  width: auto;
}
.sc-navbar-logo .custom-logo-link img {
  height: 50px;
  width: auto;
}

/* Desktop links — centered */
.sc-navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
}
.sc-navbar-link {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.45rem 1.05rem;
  border-radius: var(--sc-radius-pill);
  white-space: nowrap;
  transition:
    color var(--sc-t),
    background var(--sc-t);
}
.sc-navbar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.sc-navbar-link.is-active {
  color: #fff;
  font-weight: 700;
}

/* Actions right */
.sc-navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* WhatsApp pill button */
.sc-navbar-wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #25d366;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--sc-radius-pill);
  white-space: nowrap;
  transition:
    background var(--sc-t),
    transform var(--sc-t),
    box-shadow var(--sc-t);
}
.sc-navbar-wa:hover {
  background: #25d366;
  transform: translateY(-1px);
  color: #fff;
}
.sc-navbar-wa i {
  font-size: 1.1rem;
}

/* Hamburger */
.sc-navbar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--sc-radius-sm);
  transition: all var(--sc-t);
}
.sc-navbar-toggle:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.sc-navbar-toggle i {
  font-size: 1.25rem;
}

/* ── Site Content ── */
.sc-site-content {
  min-height: 60vh;
}

/* ══════════════════════════════
   FOOTER — simple & clean
══════════════════════════════ */
.sc-footer {
  background: var(--sc-azul);
}
.sc-footer-inner {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  padding: 0 var(--sc-gutter);
}

/* 3-column grid: brand / menu / contact */
.sc-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr;
  gap: 4rem;
  padding: 3.5rem 0 2.5rem;
}

/* Brand col */
.sc-footer-logo {
  margin-bottom: 1rem;
}
.sc-footer-logo img {
  height: 42px;
  width: auto;
}
.sc-footer-logo .custom-logo-link img {
  height: 42px;
  width: auto;
}

.sc-footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 340px;
}

/* Social icons row (in brand col) */
.sc-footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sc-footer-social-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  color: var(--sc-blanco);
  transition: all var(--sc-t);
}

.sc-footer-social-btn i {
  font-size: 0.9rem;
  transition: color var(--sc-t);
}

.sc-footer-social-btn:hover {
  background: var(--sc-blanco);
}

.sc-footer-social-btn:hover i {
  color: #25d366;
}

/* Column titles */
.sc-footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sc-blanco);
  margin-bottom: 1.1rem;
}

/* Nav list */
.sc-footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sc-footer-nav-list li a i {
  font-size: 0.85rem;
  color: #25d366;
  margin-top: 2px;
  flex-shrink: 0;
}

.sc-footer-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.72);
  border-radius: var(--sc-radius-pill);
  white-space: nowrap;
  transition:
    color var(--sc-t),
    background var(--sc-t);
}

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

/* Contact list */
.sc-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sc-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.72);
  border-radius: var(--sc-radius-pill);
  white-space: nowrap;
  transition:
    color var(--sc-t),
    background var(--sc-t);
}
.sc-footer-contact-item i {
  font-size: 0.85rem;
  color: #25d366;
  margin-top: 2px;
  flex-shrink: 0;
}
.sc-footer-contact-item a {
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--sc-t);
}
.sc-footer-contact-item a:hover {
  color: #fff;
}

/* Divider */
.sc-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

/* Bottom bar */
.sc-footer-bottom {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sc-footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.sc-footer-bottom-link {
  font-size: 1rem;
  color: var(--sc-blanco);
  transition: color var(--sc-t);
}
.sc-footer-bottom-link:hover {
  color: #25d366;
}
.sc-footer-bottom-sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
}
.sc-footer-bottom-right {
  font-size: 1rem;
  color: var(--sc-blanco);
}
.sc-footer-bottom-right a {
  color: #25d366;
  transition: color var(--sc-t);
}
.sc-footer-bottom-right a:hover {
  color: #25d366;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .sc-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .sc-footer-brand {
    grid-column: span 2;
  }
  .sc-footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  /* Hide desktop nav & WA pill; show hamburger */
  .sc-navbar-nav {
    display: none;
  }
  .sc-navbar-wa {
    display: none;
  }
  .sc-navbar-toggle {
    display: flex;
  }
  .sc-navbar-inner {
    height: 64px;
  }
}

@media (max-width: 768px) {
  .sc-footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
  }
  .sc-footer-brand {
    grid-column: span 1;
  }
  .sc-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --sc-gutter: 1.25rem;
  }
  .sc-navbar-inner {
    height: 60px;
  }
  .sc-navbar-logo img,
  .sc-navbar-logo .custom-logo-link img {
    height: 42px;
  }
}
