/* =======================
   PALMARENA TURISMO
   Estilos globales
   ======================= */

:root {
  --primario: #004c3f;
  --secundario: #007f6d;
  --acento: #f8c13a;
  --claro: #f5f7fa;
  --oscuro: #002822;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--claro);
  color: var(--oscuro);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =======================
   ENCABEZADO
   ======================= */

header.encabezado {
  background-color: var(--primario);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.8rem;
  margin-left: 1rem;
}

header nav a {
  margin-left: 1rem;
  font-weight: bold;
  color: white;
  transition: color 0.3s;
}

header nav a:hover,
header nav .activo {
  color: var(--acento);
}

.logo {
  max-width: 150px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* =======================
   HERO
   ======================= */

.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 100px 20px;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45); /* Oscurece la imagen para que el texto resalte */
  z-index: -1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  background-color: var(--acento);
  color: black;
  padding: 12px 28px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero .btn:hover {
  background-color: #e3aa1e;
}

/* =======================
   POR QUÉ ELEGIRNOS
   ======================= */

.porque-elegirnos {
  padding: 60px 20px;
  background-color: white;
  text-align: center;
}

.porque-elegirnos h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primario);
}

.iconos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.iconos div {
  background-color: var(--claro);
  border-radius: 12px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.iconos div:hover {
  transform: translateY(-10px);
}

.iconos i {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--secundario);
}

/* =======================
   PIE DE PÁGINA
   ======================= */

footer {
  background-color: var(--primario);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* =======================
   UTILIDADES RESPONSIVE
   ======================= */

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .iconos {
    flex-direction: column;
    align-items: center;
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  header nav {
    margin-top: 1rem;
  }

  header h1 {
    margin: 0.5rem 0;
  }
}
.contenedor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.tarjeta {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tarjeta:hover {
  transform: translateY(-10px);
}

.tarjeta-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.tarjeta-contenido {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.tarjeta-contenido h3 {
  color: var(--primario);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.tarjeta-contenido p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 15px;
}

.tarjeta-contenido .precio {
  font-weight: bold;
  color: var(--acento);
  font-size: 1.1rem;
}
.formulario-contacto {
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.formulario-contacto textarea {
  resize: vertical;
  min-height: 100px;
}

.formulario-contacto button {
  background-color: var(--primario);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formulario-contacto button:hover {
  background-color: var(--secundario);
}
@media (max-width: 768px) {

  .encabezado {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .encabezado nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .encabezado nav a {
    font-size: 1.1rem;
    padding: 8px 0;
  }

  .logo {
    width: 120px;
    margin-bottom: 10px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .contenedor-grid {
    padding: 20px;
    gap: 20px;
  }

  .formulario-contacto {
    padding: 20px;
    margin: 20px;
  }

  .formulario-contacto input,
  .formulario-contacto textarea {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 1rem;
    padding: 10px 15px;
  }

  footer p {
    font-size: 0.9rem;
    padding: 10px 20px;
    text-align: center;
  }
}
/* ============================
   BOTÓN FLOTANTE WHATSAPP (CORREGIDO)
   ============================ */
.btn-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  background-color: #20c659;
}

.btn-whatsapp i {
  line-height: 0;
}