/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: #f5f7fa;
  color: #1b263b;
  line-height: 1.6;
}

/* Títulos */
h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Párrafos */
p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

/* ===== Navegación ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1f4068;
  color: white;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
nav .logo {
  font-size: 1.3rem;
  font-weight: bold;
}
nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}
nav a:hover {
  color: #4fb3bf;
}

/* ===== Hero ===== */
.hero { 
  height: 100vh; 
  background: linear-gradient(rgba(31,64,104,0.85), rgba(31,64,104,0.85)),
              url("tu-imagen.jpg") no-repeat center center/cover;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  text-align: center; 
  padding: 20px; 
  color: white; 
}
    
.hero h1 { 
  font-size: 2.7rem; 
  margin-bottom: 15px; 
} 

.hero p { 
  font-size: 1.2rem; 
  max-width: 900px; 
  margin: 0 auto 25px; 
  text-align: center; 
  line-height: 1.6; 
} 

.btn-primary { 
  background: #4fb3bf; 
  color: white; 
  padding: 12px 28px; 
  border-radius: 6px; 
  text-decoration: none; 
  font-weight: bold; 
  transition: background 0.3s; 
} 

.btn-primary:hover { 
  background: #2a6f97; 
}

/* Estado inicial oculto del hero */
#hero-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Estado visible */
#hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animación carrusel */
@keyframes slide {
  0%   { transform: translateX(0); }
  16%  { transform: translateX(0); }
  20%  { transform: translateX(-100%); }
  36%  { transform: translateX(-100%); }
  40%  { transform: translateX(-200%); }
  56%  { transform: translateX(-200%); }
  60%  { transform: translateX(-300%); }
  76%  { transform: translateX(-300%); }
  80%  { transform: translateX(-400%); }
  96%  { transform: translateX(-400%); }
  100% { transform: translateX(-500%); }
}

/* ===== Secciones ===== */
.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}
.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #1f4068;
}
.section.alt {
  background: #e0e1dd;
}

/* ===== Servicios ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.service {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.service .icon {
  font-size: 2rem;
  margin-bottom: 15px;
}
.service h3 {
  margin-bottom: 10px;
  color: #2a6f97;
}

/* Animación de vibración */
@keyframes vibrate {
  0%   { transform: translate(0); }
  15%  { transform: translate(-3px, 3px); }
  30%  { transform: translate(-3px, -3px); }
  45%  { transform: translate(3px, 3px); }
  60%  { transform: translate(3px, -3px); }
  75%  { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}

.service.vibrating {
  animation: vibrate 0.3s linear;
}

/* ===== Beneficios ===== */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  padding: 20px;
}

.benefit {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.benefit h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #1f4068;
}

.benefit p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* 🔹 Responsive */
@media (max-width: 992px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

/* ===== Proyectos ===== */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.project {
  position: relative;
  background: linear-gradient(135deg, #ffffff, #f0f4fa);
  padding: 40px 30px 30px 30px;
  border-left: 6px solid #2a6f97;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.project-icon {
  position: absolute;
  top: -20px;
  left: 20px;
  background: #2a6f97;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.project-content h3 {
  color: #2a6f97;
  margin-bottom: 15px;
  margin-left: 50px;
  font-size: 1.4rem;
}

.project-content p {
  margin-left: 50px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== Formulario de contacto ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form button {
  border: none;
  cursor: pointer;
}

/* ===== Footer ===== */
footer {
  background: #1f4068;
  color: white;
  text-align: center;
  padding: 20px;
  width: 100%;
  clear: both;
  display: block;
  position: relative;
  z-index: 10;
}

/* Animaciones */
@keyframes slideLeft {
  0% {opacity: 0; transform: translateX(-100px);}
  100% {opacity: 1; transform: translateX(0);}
}
@keyframes slideRight {
  0% {opacity: 0; transform: translateX(100px);}
  100% {opacity: 1; transform: translateX(0);}
}
@keyframes slideUp {
  0% {opacity: 0; transform: translateY(100px);}
  100% {opacity: 1; transform: translateY(0);}
}
.anim-left {
  animation: slideLeft 2s ease forwards;
}
.anim-right {
  animation: slideRight 2s ease forwards;
}
.anim-bottom {
  animation: slideUp 3s ease forwards;
}
.anim-left,
.anim-right,
.anim-bottom {
  animation-delay: 2s;
}

/* Link de proyectos */
.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-link:hover .project {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  border-color: #1f4068;
}

/* Estado oculto */
.oculto {
  display: none;
}

/* Animación de despliegue */
.contact-form {
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Centrar el botón Contactar */
.contact-btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

#mostrar-form {
  padding: 12px 28px;
  font-size: 1rem;
}

/* Botón secundario */
.btn-secondary {
  background: #1f4068;
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #2a6f97;
}

/* Estilo links menú */
nav .menu a {
  position: relative;
  padding: 5px 10px;
  margin-left: 15px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 200;
  display: inline-block;
}
nav .menu a:hover {
  border-color: #4fb3bf;
  background: rgba(79, 179, 191, 0.15);
  color: #4fb3bf;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
nav .menu a:focus {
  outline: none;
  border-color: #ffffff;
  background: rgba(255,255,255,0.15);
}
nav .menu a.active {
  border: 2px solid #ffffff;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Animación rebote para #precios */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-6px);}
  60% {transform: translateY(-3px);}
}
nav .menu a[href="#precios"] {
  animation: bounce 2s infinite;
  font-weight: bold;
  transition: color 0.4s ease;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal.oculto {
  display: none;
}
.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 900px;
  width: 95%;
  text-align: left;
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
  animation: fadeIn 0.4s ease;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}
.modal-content h2 {
  margin-bottom: 20px;
  color: #1f4068;
  text-align: center;
}
.modal-content h3 {
  margin-top: 25px;
  color: #162447;
}
.modal-content p,
.modal-content li {
  margin: 8px 0;
  font-size: 1rem;
  line-height: 1.5;
}
.cerrar {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}
.bloque-centrado {
  text-align: center;
}
.bloque-centrado h3 {
  text-align: center;
}
.bloque-centrado ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}
.bloque-centrado li {
  margin: 10px 0;
}
.precio {
  font-weight: bold;
  color: #1f4068;
  font-size: 1.05rem;
}
.nota-descuento {
  margin-top: 25px;
  font-size: 0.95rem;
  font-style: italic;
  color: #1f4068;
  text-align: center;
}
