/* =======================================================
GLOBAL RESET – CONSISTENCIA TOTAL
======================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================
FIX GLOBAL SEGURO PARA EVITAR SCROLL HORIZONTAL
(NO rompe nada del layout)
========================================================== */
html, body {
  overflow-x: hidden;
}

/* ==========================================================
GRID: evitar que los elementos se expandan fuera del contenedor
========================================================== */
.about-cleaning,
.ac-container,
.ac-left,
.ac-right {
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0;
}

/* ==========================================================
TARJETA SOBRE LA IMAGEN (AC-CARD)
NO debe sobresalir → ajustamos de forma segura
========================================================== */
.ac-card {
  left: 30px;
  max-width: calc(100% - 40px);
}

@media(max-width: 880px){
  .ac-card {
    left: 50%;
    transform: translateX(-50%);
    max-width: 92%;
  }
}

/* ==========================================================
ANIMACIONES: NO empujar el contenido fuera del viewport
========================================================== */
.slide-left {
  transform: translateX(-20px);
}
.slide-right {
  transform: translateX(20px);
}

@keyframes slideLeft {
  to { transform: translateX(0); }
}
@keyframes slideRight {
  to { transform: translateX(0); }
}

/* ==========================================================
IMG: Asegurar que nunca se expanda más del contenedor
========================================================== */
.ac-image img {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* =======================================================
FIX DE SCROLL VERTICAL DEL FAQ (AC-RIGHT)
======================================================= */
.ac-right {
  overflow: visible !important; 
  max-height: none !important;
}

.ac-faq {
  max-height: none !important; 
  overflow-y: visible !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--white);
  color: var(--brand-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =======================================================
VARIABLES GLOBALES – INYECTADAS DESDE PHP
======================================================= */
:root {
  --brand-primary: #088090;
  --brand-secondary: #8CB2C0;
  --brand-accent: #D0C9B7;
  --brand-dark: #043840;
  --white: #FFFFFF;
  --brand-white: #8CB2C0;
  --font-main: "Inter", sans-serif;
  --title-font: "Inter", sans-serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* =======================================================
CONTENEDORES + LAYOUT
======================================================= */
.container {
  width: min(1200px, 92%);
  margin: auto;
}

.section {
  padding: var(--space-5) 0;
}

.flex {
  display: flex;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* =======================================================
TITULOS & TEXTO
======================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
}

p {
  color: var(--brand-dark);
}

.title-underline {
  position: relative;
  padding-bottom: 0.5rem;
}

.title-underline::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--brand-primary);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* =======================================================
BOTONES
======================================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.25s;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-medium);
}

/* =======================================================
HERO SECTION
======================================================= */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 7rem 0;
  color: var(--white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: auto;
}

/* =======================================================
CARDS
======================================================= */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  transition: 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

/* =======================================================
GALERÍA
======================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 40vw), 1fr));
  gap: var(--space-2);
}

.gallery-grid img {
  width: 100%;
  border-radius: 6px;
  display: block;
  transition: 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}

/* =======================================================
ANIMACIONES PROFESIONALES
======================================================= */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 1.3s ease forwards 0.3s;
}

.slide-up {
  opacity: 0;
  transform: translateY(25px);
  animation: slideUp 0.9s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-left {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideLeft 0.9s ease forwards;
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-right {
  opacity: 0;
  transform: translateX(20px);
  animation: slideRight 0.9s ease forwards;
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.zoom-in {
  opacity: 0;
  transform: scale(0.92);
  animation: zoomIn 0.9s ease forwards;
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.text-reveal {
  overflow: hidden;
  display: inline-block;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
  to {
    transform: translateY(0);
  }
}

/* =======================================================
BOTONES FLOTANTES
======================================================= */
.floating-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: clamp(45px, 5vw, 55px);
  height: clamp(45px, 5vw, 55px);
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  z-index: 999;
}

.floating-btn:hover {
  background: var(--brand-dark);
}

.floating-btn.secondary {
  bottom: 5rem;
  background: var(--brand-secondary);
}

.floating-btn.secondary:hover {
  background: var(--brand-primary);
}

/* =======================================================
FOOTER
======================================================= */
footer {
  background: var(--brand-dark);
  color: var(--white);
  padding: var(--space-4) 0;
  text-align: center;
}

/* =======================================================
RESPONSIVE
======================================================= */
@media (max-width: 600px) {
  html {
    font-size: 15px !important;
  }

  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    font-size: 1.3rem !important;
  }

  h3 {
    font-size: 1.15rem !important;
  }

  h4 {
    font-size: 1rem !important;
  }

  p {
    font-size: 0.95rem !important;
  }

  .hero {
    padding: 4rem 0;
  }
}

/* =======================================================
FIX ESPECÍFICO PARA SOCIAL ICONS EN FOOTER
Garantiza visibilidad en todos los dispositivos
======================================================= */
.social-icons {
  overflow: visible !important;
}

.social-icons a,
.social-icons svg {
  flex-shrink: 0 !important;
  min-width: 24px !important;
  min-height: 24px !important;
}