/* ── Variables ─────────────────────────────────────────── */
:root {
  --color-accent: #00897b;
  --color-accent-hover: #00695c;
  --bg-main: #fafafa;
  --bg-white: #ffffff;
  --text-primary: #212121;
  --text-secondary: #555;
  --font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-height: 64px;
  --max-width: 1100px;
  --radius: 8px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --transition: 0.3s ease;
}

/* ── Reset ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ── Container ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ── Section title ────────────────────────────────────── */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-white);
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: color var(--transition);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.header__link:hover {
  color: var(--color-accent);
}

.header__link:hover::after {
  width: 100%;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity, transform;
  animation: kenBurns 18s ease-in-out infinite alternate;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide:nth-child(1) {
  animation-delay: 0s;
}

.hero__slide:nth-child(2) {
  animation-delay: -6s;
}

.hero__slide:nth-child(3) {
  animation-delay: -12s;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-2%, -1%);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 700px;
}

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero__content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 32px;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════════════════════════
   SERVICIOS
   ══════════════════════════════════════════════════════════ */
.servicios {
  padding: 96px 0;
  background: var(--bg-white);
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg-main);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.card__icon {
  font-size: 2.4rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════════════════ */
.contacto {
  padding: 96px 0;
  background: var(--bg-main);
}

.contacto__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #d4d4d4;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-white);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.12);
}

.form-group textarea {
  resize: vertical;
}

.contacto__info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.contacto__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contacto__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contacto__list li i {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contacto__list li a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contacto__list li a:hover {
  color: var(--color-accent);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-white);
  padding: 28px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid #e8e8e8;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Header mobile */
  .header__toggle {
    display: block;
  }

  .header__nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .header__nav.nav-open {
    max-height: 300px;
  }

  .header__link {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
  }

  .header__link::after {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero__content h1 {
    font-size: 1.75rem;
  }

  /* Servicios */
  .servicios__grid {
    grid-template-columns: 1fr;
  }

  .servicios {
    padding: 64px 0;
  }

  .contacto {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }
}

/* ── WhatsApp flotante ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}
