/* ================================
   VARIABLES — El ADN del diseño
================================ */
:root {
  --color-primario: #3b3636;
  --color-secundario: #1a3c5e;
  --color-acento: #1800f0;
  --color-fondo: #f8f9fa;
  --color-texto: #2d2d2d;
  --color-texto-claro: #666666;
  --color-blanco: #ffffff;
  --fuente-titulo: "Epunda Slab", serif;
  --fuente-cuerpo: "Inter", sans-serif;
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radio: 12px;
  --transicion: all 0.3s ease;
}

/* ================================
   RESET — Borramos estilos del navegador
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--fuente-cuerpo);
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ================================
   NAVBAR
================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transicion);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

nav {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 85px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu li a {
  font-size: 0.95rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transicion);
  position: relative;
}

header.scrolled .nav-menu li a {
  color: var(--color-texto);
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-acento);
  transition: var(--transicion);
}

.nav-menu li a:hover::after {
  width: 100%;
}

.nav-menu li a:hover {
  color: var(--color-acento);
}

header.scrolled .nav-menu li a:hover {
  color: var(--color-primario);
}

/* Botón WhatsApp en navbar */
.nav-whatsapp {
  background-color: #25d366;
  color: var(--color-blanco) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: var(--transicion);
}

.nav-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: var(--color-blanco) !important;
}

.nav-whatsapp::after {
  display: none !important;
}

/* Hamburguesa */
.hamburguesa {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburguesa span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-blanco);
  transition: var(--transicion);
  border-radius: 2px;
}

header.scrolled .hamburguesa span {
  background-color: var(--color-primario);
}

.hamburguesa.activo span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburguesa.activo span:nth-child(2) {
  opacity: 0;
}

.hamburguesa.activo span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================
   HERO
================================ */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      rgba(26, 60, 94, 0.65) 0%,
      rgba(73, 79, 77, 0.63) 100%
    ),
    url("imagenes/coffeimagen.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  animation: rotar 20s linear infinite;
}

@keyframes rotar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-contenido {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-contenido h1 {
  font-family: var(--fuente-titulo);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-blanco);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-contenido p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25d366;
  color: var(--color-blanco);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transicion);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}
#hero {
  padding-bottom: 4rem;
}
#hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent 10%, #b4bccb 100%);
  z-index: 1;
}
/* ================================
   SERVICIOS
================================ */
#servicios {
  padding: 6rem 2rem;
  background-color: #f0f4f8;
}

#servicios h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primario);
  text-align: center;
  margin-bottom: 0.5rem;
}

#servicios h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-acento);
  margin: 1rem auto 0;
}

.servicios-subtitulo {
  text-align: center;
  color: var(--color-texto-claro);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.servicios-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.95rem;
}

.servicio-banner {
  position: relative;
  height: 350px;
  border-radius: var(--radio);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: block;
  text-decoration: none;
  box-shadow: var(--sombra);
  transition: var(--transicion);
}

.servicio-banner:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.servicio-banner:hover .banner-overlay {
  background: linear-gradient(
    to top,
    rgba(26, 60, 94, 0.95) 0%,
    rgba(26, 60, 94, 0.5) 100%
  );
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transicion);
}

.banner-overlay span {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.banner-overlay h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.2rem;
  color: var(--color-blanco);
  margin-bottom: 0.4rem;
}

.banner-overlay p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* ================================
   HORARIO
================================ */
#horario {
  padding: 6rem 2rem;
  background-color: #3b3636;
  position: relative;
  overflow: hidden;
}

#horario::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 60%
  );
  animation: rotar 15s linear infinite;
}

#horario::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  animation: reflejo 6s ease-in-out infinite;
}

@keyframes reflejo {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

#horario h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-blanco);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

#horario h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-acento);
  margin: 1rem auto 3rem;
}

.horario-contenido {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border-radius: var(--radio);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.horario-contenido::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 60%
  );
  animation: reflejo-tarjeta 4s ease-in-out infinite;
}

@keyframes reflejo-tarjeta {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.horario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--color-blanco);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.horario-item:last-of-type {
  border-bottom: none;
}

.horario-item span:first-child {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.horario-item span:last-child {
  font-weight: 600;
  color: var(--color-blanco);
}

.horario-derecha {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.horario-derecha small {
  font-size: 0.75rem;
  color: #ff6b6b;
  font-style: italic;
  font-weight: 400;
}

.horario-nota {
  text-align: center;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-style: italic;
  position: relative;
  z-index: 1;
} /* ================================
   UBICACION
================================ */
#ubicacion {
  padding: 6rem 2rem;
  background-color: var(--color-blanco);
}

#ubicacion h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primario);
  text-align: center;
  margin-bottom: 1rem;
}

#ubicacion h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-acento);
  margin: 1rem auto 3rem;
}

.mapa-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-hover);
}

.mapa-contenedor iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: none;
}
/* ================================
   CONTACTO
================================ */
#contacto {
  padding: 6rem 2rem;
  background-color: var(--color-fondo);
  text-align: center;
}

#contacto h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primario);
  margin-bottom: 1rem;
}

#contacto h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-acento);
  margin: 1rem auto 3rem;
}

#contacto p {
  font-size: 1rem;
  color: var(--color-texto-claro);
  margin-bottom: 2.5rem;
}

.contacto-botones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.btn-facebook {
  display: inline-block;
  background-color: #1877f2;
  color: var(--color-blanco);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transicion);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.btn-facebook:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: var(--color-blanco);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transicion);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5);
}
/* ================================
   FOOTER
================================ */
footer {
  background-color: var(--color-primario);
  color: rgba(255, 255, 255, 0.8);
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 3rem;
}

.footer-marca p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
  font-family: var(--fuente-titulo);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-blanco);
}

.footer-credenciales h4,
.footer-contacto h4 {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  color: #eceef2;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nombre {
  font-size: 0.95rem;
  color: var(--color-blanco);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-credenciales ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-credenciales ul li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.footer-credenciales ul li span {
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.footer-contacto {
  display: flex;
  flex-direction: column;
}

.footer-contacto a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
  transition: var(--transicion);
}

.footer-contacto a:hover {
  color: var(--color-acento);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-powered {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-powered span {
  color: #038401eb;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ================================
   OVERLAY
================================ */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  transition: var(--transicion);
}

.overlay.activo {
  display: block;
}

/* ================================
   RESPONSIVE — TABLETS (max 1024px)
================================ */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-contenido {
    grid-template-columns: 1fr 1fr;
  }

  .footer-marca {
    grid-column: 1 / -1;
  }
}

/* ================================
   RESPONSIVE — MÓVIL (max 768px)
================================ */
@media (max-width: 768px) {
  /* Navbar */
  .hamburguesa {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background-color: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transicion);
    z-index: 999;
  }

  .nav-menu.abierto {
    right: 0;
  }

  .nav-menu li a {
    font-size: 1.1rem;
    color: var(--color-blanco);
  }

  header.scrolled .nav-menu li a {
    color: var(--color-blanco);
  }

  .nav-whatsapp {
    background-color: #25d366;
    color: var(--color-blanco) !important;
  }

  /* Hero */
  .hero-contenido h1 {
    font-size: 2rem;
  }

  .hero-contenido p {
    font-size: 1rem;
  }

  /* Servicios */
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Horario */
  .horario-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .horario-derecha {
    align-items: flex-start;
  }

  /* Contacto */
  .contacto-botones {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-whatsapp,
  .btn-facebook,
  .btn-instagram {
    min-width: 200px;
    text-align: center;
    justify-content: center;
  }

  .menu-cerrar {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transition: var(--transicion);
    line-height: 1;
  }

  .menu-cerrar:hover {
    color: var(--color-blanco);
    transform: rotate(90deg);
  }

  /* Footer */
  .footer-contenido {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ================================
   RESPONSIVE — MÓVIL PEQUEÑO (max 480px)
================================ */
@media (max-width: 480px) {
  #hero {
    padding: 1.5rem;
  }

  .btn-whatsapp,
  .btn-facebook {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  nav {
    padding: 1rem 1.25rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

/*logo hamburgesa*/
.menu-header {
  display: none;
}

@media (max-width: 768px) {
  .menu-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    text-align: center;
    position: relative;
  }

  .menu-header img {
    grid-column: 1;
    grid-row: 1;
    height: 60px;
    width: auto;
    margin: 0 auto;
  }

  .menu-cerrar {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transicion);
    padding: 0.5rem;
    position: absolute;
    top: -3rem;
    right: 0;
    line-height: 1;
  }

  .menu-cerrar:hover {
    color: var(--color-blanco);
    transform: rotate(90deg);
  }

  .menu-cerrar:hover {
    color: var(--color-blanco);
    transform: rotate(90deg);
  }

  .menu-header img {
    height: 80px;
    width: auto;
  }
}
/*botones de whatapp y facebook e instagram*/
.btn-whatsapp,
.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-facebook {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ================================
   BOTÓN FLOTANTE WHATSAPP
================================ */
.whatsapp-flotante {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: var(--color-blanco);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transicion);
  z-index: 997;
}

.whatsapp-flotante:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-flotante::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  animation: pulso 2s ease-out infinite;
  z-index: -1;
}

@keyframes pulso {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
/* ================================
   ANIMACIONES AL SCROLL
================================ */
.animar {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.animar.visible {
  opacity: 1;
  transform: translateY(0);
}

.animar-izquierda {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.animar-izquierda.visible {
  opacity: 1;
  transform: translateX(0);
}

.animar-derecha {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.animar-derecha.visible {
  opacity: 1;
  transform: translateX(0);
}
