/* Fuente base */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Encabezado */
header {
  background-color: #0d1b2a;
}

header h1 {
  font-size: 1.8rem;
  font-weight: bold;
}

header .nav-link {
  font-weight: 500;
  transition: color 0.3s;
}

header .nav-link:hover {
  color: #00b4d8;
}
html {
  scroll-padding-top: 100px; /* Ajusta según la altura real de tu header */
}


/* Sección Inicio 
//#inicio {
  background: linear-gradient(to right, #0077b6, #00b4d8);
  color: white;
  padding: 4rem 0;
}*/

#inicio h2 {
  font-size: 2rem;
  font-weight: bold;
}

/* Servicios */
#servicios .card {
  border: none;
  transition: transform 0.3s;
}

#servicios .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#servicios i {
  color: #0d1b2a;
}
.titulo-general {
  font-size: 2.2rem;
  font-weight: 800;
  color: #053E7A;
}

.subtitulo-general {
  color: #606060;
  font-size: 1rem;
}

/* TARJETAS */
.card-plan {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  transition: .25s ease;
  padding-bottom: 25px;
  min-height: 520px;
  position: relative;
}

.card-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

/* HEADER */
.card-header {
  padding: 35px 25px;
  text-align: center;
}

.suave-azul {
  background: linear-gradient(to bottom, rgba(5,62,122,0.25), rgba(255,255,255,0.35));
}

.suave-naranja {
  background: linear-gradient(to bottom, rgba(255,122,0,0.35), rgba(255,255,255,0.35));
}

.card-header h3 {
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #053E7A;
}

.precio {
  font-size: 2.3rem;
  font-weight: 900;
  color: #053E7A;
}

.precio span {
  font-size: 1rem;
  font-weight: 600;
  margin-left: 4px;
}

.iva {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #444;
}

/* LISTA */

.lista {
  list-style: none;
  padding: 20px 30px;
  margin: 0;
}

.lista li {
  margin: 10px 0;
  font-size: 0.97rem;
  color: #333;
}

.lista li b {
  color: #053E7A;
}
.lista li::before {
  content: "✔";
  color: #FF7A00;
  margin-right: 8px;
  font-weight: bold;
}


/* BOTÓN */
.btn-info {
  background: #FF7A00;
  border: none;
  color: #fff;
  width: 85%;
  margin: 0 auto;
  display: block;
  padding: 12px 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  transition: 0.25s;
  margin-top: 10px;
}

.btn-info:hover {
  background: #e86c00;
}

/* POPULAR */
.popular {
  border: 3px solid #FF7A00;
}

.etiqueta-popular {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #FF7A00;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
}
.btn-info {
  background: #FF7A00;
  border: none;
  color: #fff;
  width: 85%;
  margin: 0 auto;
  display: block;
  padding: 12px 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  transition: 0.25s;
  margin-top: 10px;
  text-align: center;
  text-decoration: none; /* quita subrayado */
}


/* Nosotros */
#nosotros p {
  font-size: 1.1rem;
}

#nosotros img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Contacto */
#contacto form {
  max-width: 600px;
  margin: auto;
}

#contacto h2 {
  color: #0d1b2a;
}

/* AOS efectos suaves */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

/* Responsivo: para móviles */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  #inicio h2 {
    font-size: 1.5rem;
  }
}
.inicio-seccion {
  position: relative;
  background-image: url('./img/fondo.jpeg');
  background-size: cover;
  background-position: center;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  text-shadow: 1px 1px 4px black;
}

.inicio-seccion::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);  /* <<< desenfoque real */
  -webkit-backdrop-filter: blur(4px); /* soporte en Safari */
  z-index: 1;
}


.inicio-seccion .container {
  position: relative;
  z-index: 2;
}


.overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem;
  background-color: rgba(0, 0, 0, 0.4); /* oscurece un poco el fondo para que el texto se lea mejor */
  border-radius: 10px;
}
.error {
    color: #d90429;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: block;
  }

  #formulario-contacto input,
  #formulario-contacto textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
  }

  #formulario-contacto button {
    background-color: #0d1b2a;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }

  #formulario-contacto button:hover {
    background-color: #00b4d8;
  }
  .contacto-contenido {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.formulario-contacto, .info-contacto {
  flex: 1 1 300px;
}

.info-contacto h3 {
  color: #0077b6;
  margin-bottom: 1rem;
}

.info-contacto p {
  margin: 0.5rem 0;
}

.carousel-inner {
  height: 400px; /* Puedes ajustar la altura */
}

.carousel-inner img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.galeria {
  padding: 60px 0;
  background-color: #f9f9f9;
}
.galeria h2 {
  font-weight: bold;
  margin-bottom: 40px;
}
.img-thumbnail {
  object-fit: cover;
  height: 250px;
  width: 100%;
  transition: transform 0.3s;
}
.img-thumbnail:hover {
  transform: scale(1.03);
}


/* Móviles */
@media (max-width: 768px) {
  .contacto-contenido {
    flex-direction: column;
  }
}
.img-nosotros {
  max-height: 400px;      /* Limita la altura */
  width: 100%;            /* Que ocupe el ancho del contenedor */
  object-fit: cover;      /* Recorta sin deformar */
  object-position: center;
  display: block;         /* Evita espacios extra */
}
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 180px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 1rem;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.flip-card-front {
  background-color: #f8f9fa;
}

.flip-card-back {
  background-color: #00b4d8;
  color: white;
  transform: rotateY(180deg);
}