/* ===================================================
   Portable Santa Fe - Estilos principales
   =================================================== */

/* ---------- VARIABLES GLOBALES ---------- */
:root {
  --bg: #121212;
  --panel: #1f1f1f;
  --muted: #bdbdbd;
  --text: #eaeaea;
  --accent: #2ec8d3; /* Turquesa oficial */
  --radius: 12px;
  --transition: 0.3s ease;
  --maxw: 1100px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.site-header.transparent { background: transparent; }
.site-header.solid {
  background: linear-gradient(180deg, rgba(18,18,18,0.9), rgba(18,18,18,0.85));
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.logo img { height: 44px; }
.nav { display: flex; gap: 1rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 8px;
  font-size: .95rem;
}
.nav a:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.cta-whatsapp {
  background: linear-gradient(90deg, var(--accent), #2bd0c8);
  color: #042527;
  font-weight: 700;
  padding: .5rem .8rem;
  border-radius: 10px;
  text-decoration: none;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,15,18,0.6);
  z-index: 0;
}
.hero .bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero-content {
  z-index: 2;
  max-width: var(--maxw);
  padding: 7rem 1rem 3rem;
}
.hero h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: var(--text);
  margin-bottom: .6rem;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.btn {
  padding: .6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-right: .5rem;
}
.btn-primary {
  background: var(--accent);
  color: #042527;
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
}

/* ---------- SECCIONES ---------- */
.section {
  padding: 4rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- CONFIANZA Y EXPERIENCIA ---------- */
.sobre-nosotros {
  background: #ffffff;
  color: #222;
  width: 100%;
  padding: 5rem 0;
}
.sobre-nosotros .two-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sobre-nosotros .col.texto {
  flex: 1 1 55%;
}
.sobre-nosotros .col.imagen {
  flex: 1 1 40%;
  display: flex;
  justify-content: flex-end;
}
.sobre-nosotros .col.imagen img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  object-fit: cover;
}
.sobre-nosotros h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #111;
  margin-bottom: 1rem;
}
.sobre-nosotros p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .sobre-nosotros .two-col {
    flex-direction: column;
    text-align: center;
  }
  .sobre-nosotros .col.imagen {
    justify-content: center;
  }
  .sobre-nosotros .col.imagen img {
    max-width: 80%;
  }
}

/* ---------- SERVICIOS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}
.service-card svg {
  width: 60px;
  height: 60px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  display: block;
  margin: 0 auto 0.8rem;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease, stroke 0.3s ease;
}
.service-card:hover svg {
  transform: scale(1.05);
  stroke: #34d1db;
}
.service-card h3 {
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  margin-bottom: .4rem;
}
.service-card p {
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- GALERÍA ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 1.5rem;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  height: 180px;
  object-fit: cover;
}

/* ---------- CONTACTO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(90deg, var(--accent), #2bd0c8);
  color: #042527;
  padding: .6rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(46,200,211,0.15);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery img { height: 130px; }
}

/* === MENÚ MÓVIL (HAMBURGUESA) === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 70px;
    right: 1rem;
    background: var(--panel);
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .nav.open { display: flex; }
}

/* ---------- AJUSTE BOTONES HERO EN MÓVIL ---------- */
@media (max-width: 768px) {
  .hero .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.6rem;
  }

  .hero .btn + .btn {
    margin-right: 0;
  }
}

/* ---------- EFECTO HOVER EN BOTÓN WHATSAPP ---------- */
.whatsapp-float {
  transition: all 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(46, 200, 211, 0.4);
}

/* ---------- ENLACES DE CONTACTO (versión profesional) ---------- */
.contact-grid a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Línea animada debajo del texto */
.contact-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.contact-grid a:hover {
  color: #5af5ff;
  text-shadow: 0 0 8px rgba(46, 200, 211, 0.6);
  transform: translateY(-1px);
}

.contact-grid a:hover::after {
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

/* ---------- EFECTO HOVER EN BOTONES DEL HERO ---------- */
.hero .btn {
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(46, 200, 211, 0.2);
}

.hero .btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(46, 200, 211, 0.35);
}

/* Variante del botón contorneado */
.hero .btn-outline:hover {
  background: rgba(46, 200, 211, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- ENLACES DE REDES (Galería y Contacto) - Animación profesional ---------- */
.redes-link {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Línea animada debajo del texto (crece de izquierda a derecha) */
.redes-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.redes-link:hover {
  color: #5af5ff;
  text-shadow: 0 0 8px rgba(46, 200, 211, 0.6);
  transform: translateY(-1px);
}

.redes-link:hover::after {
  width: 100%;
}
