/* Estilos globales */
html {
  scroll-behavior: smooth;
}

/* Colores suaves y tranquilizantes */
:root {
  --color-primario: #a8dadc;
  --color-secundario: #457b9d;
  --color-terciario: #1d3557;
  --fondo: #f0f4f8;
  --texto-principal: #1d3557;
  --texto-secundario: #555;
  --blanco-transparente: rgba(255, 255, 255, 0.9);
}

/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--fondo);
  color: var(--texto-principal);
  line-height: 1.6;
}

a {
  color: var(--color-secundario);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--color-terciario);
  outline: none;
}

/* Animación para el título */
@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(
    135deg,
    var(--color-primario),
    var(--color-secundario)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
header h1 {
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: 2px;
  background: linear-gradient(45deg, #a8dadc, #457b9d, #1d3557);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wave 3s ease-in-out infinite;
  text-shadow: 2px 2px 6px rgba(69, 123, 157, 0.7);

  margin-bottom: 0.5rem;
  user-select: none;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.1rem;
}
nav ul li a {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
nav ul li a:hover,
nav ul li a:focus {
  background-color: rgba(255 255 255 / 0.3);
  outline: none;
}

/* Slider básico */
.slider {
  height: 500px; /* Altura uniforme para todas */
  max-width: 1100px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 90vw;
}
.slides {
  height: 100%;
  display: flex;
  animation: slideAnimation 18s infinite;
}
.slides img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 15px;
  user-select: none;
  height: 500px;
}

@keyframes slideAnimation {
  0% {
    transform: translateX(0%);
  }
  33% {
    transform: translateX(-100%);
  }
  66% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Secciones con ancho uniforme */
main section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem 2rem;
  background: var(--blanco-transparente);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: saturate(180%) blur(20px);
  width: 90vw;
}

/* Playas */
.playas {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.playa {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 320px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.playa:hover,
.playa:focus {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(69, 123, 157, 0.35);
  outline: none;
}
.playa img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  user-select: none;
}
.playa .info {
  padding: 1rem 1.2rem;
  color: var(--texto-secundario);
}
.playa h3 {
  margin-bottom: 0.5rem;
  color: var(--color-terciario);
}

/* Texto secciones */
h2 {
  color: var(--color-terciario);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 2rem;
  user-select: none;
}
p {
  font-size: 1.1rem;
  user-select: text;
}

/* Formulario contacto */
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
}
label {
  font-weight: 600;
  color: var(--color-terciario);
}
input,
textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-secundario);
  box-shadow: 0 0 6px var(--color-secundario);
}
button {
  background-color: var(--color-secundario);
  color: white;
  border: none;
  padding: 0.85rem;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
button:hover,
button:focus {
  background-color: var(--color-terciario);
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background-color: var(--color-terciario);
  color: white;
  font-size: 0.9rem;
  user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
  .playas {
    flex-direction: column;
    align-items: center;
  }
  .playa {
    width: 90vw;
  }
}

#consejos {
  background: linear-gradient(135deg, #a0d8f7, #d3eaff);
  padding: 30px 20px;
  border-radius: 12px;
  max-width: 1100px;
  margin: 40px auto;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #034f84;
}

#consejos h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #022f40;
}

#consejos p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
  color: #045a8d;
}

#consejos ul {
  list-style: none;
  padding-left: 0;
  max-width: 500px;
  margin: 0 auto;
}

#consejos ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: #023e58;
  font-weight: 600;
  transition: color 0.3s ease;
}

#consejos ul li::before {
  content: "✓"; /* checkmark */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #1e90ff; /* DodgerBlue */
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 0 3px #a0d8f7;
}

#consejos ul li:hover {
  color: #0a74da;
  cursor: default;
}

.descripcion-playa {
  background: linear-gradient(135deg, #a0d8f7, #d3eaff);
  padding: 30px 20px;
  border-radius: 12px;
  max-width: 1100px;
  margin: 40px auto;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #034f84;
}

.descripcion-playa h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #022f40;
}

.descripcion-playa p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
  color: #045a8d;
}

.descripcion-playa ul {
  list-style: none;
  padding-left: 0;
  max-width: 500px;
  margin: 0 auto;
}

.descripcion-playa ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: #023e58;
  font-weight: 600;
  transition: color 0.3s ease;
}

.descripcion-playa ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #1e90ff;
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 0 3px #a0d8f7;
}

.descripcion-playa ul li:hover {
  color: #0a74da;
  cursor: default;
}
@media (max-width: 600px) {
  .playas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 100%;
  }

  .playa {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
  }

  .playa:hover,
  .playa:focus {
    transform: scale(1.02);
    outline: none;
  }

  .playa img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #ddd;
  }

  .slider {
    width: 100vw;
    margin: 0;
    border-radius: 0;
  }

  .slides img {
    height: 300px;
    object-fit: cover;
  }
}
