/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(10, 20, 40, 0.9);
  color: #fff;
  z-index: 1000;
  transition: background 0.3s ease;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
}
.navbar .logo {
  font-weight: bold;
  font-size: 1.5em;
  color: #fff;
  text-decoration: none;
}
.navbar .logo span { color: #fff; }
.navbar ul {
  display: flex;
  gap: 25px;
  list-style: none;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.navbar a:hover { color: #4da6ff; }

/* ===== Menú Hamburguesa ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== Hero / Slider ===== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.slider {
  width: 100%;
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
}

/* ===== Texto centrado en el slide ===== */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 90%;
  max-width: 800px;
}
.slide-content h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
}
.slide-content p {
  font-size: 1.3em;
  color: #ddd;
}

/* ===== Secciones ===== */
.section {
  padding: 80px 10%;
  text-align: center;
}
.section.alt { background: #f5f6f8; }
.section h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

/* ===== Tarjetas ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 25px;
  max-width: 300px;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-8px); }

/* ===== Por qué elegirme ===== */
.why-list {
  list-style: none;
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.why-list li { margin: 10px 0; }

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.portfolio-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
}
.portfolio-grid img:hover { transform: scale(1.05); }

/* ===== Formulario ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
}
.contact-form button {
  background: #00519E;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover { background: #2a84d9; }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 25px;
  background: #0e1a2b;
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  
  /* Menú oculto por defecto */
  .nav-links {
    position: absolute;
    top: 60px;
    right: 8%;
    width: 200px;
    flex-direction: column;
    background: rgba(10, 20, 40, 0.95);
    border-radius: 10px;
    padding: 15px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
  }

  /* Animación de apertura */
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    margin: 10px 0;
    text-align: right;
  }

  .slide-content h1 { font-size: 1.9em; }
  .slide-content p { font-size: 1.1em; }
}

/* ===== Logo con imagen ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.5em;
  color: #fff;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* Ajuste del logo en pantallas pequeñas */
@media (max-width: 768px) {
  .logo {
    font-size: 1.2em;
    gap: 8px;
  }

  .logo-img {
    height: 64px;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}
.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 10%;
  box-shadow: 0;
  background-color: 0;
}
.whatsapp-float:hover {
  transform: scale(1.05);
}
/* Aparece suavemente */
.whatsapp-float.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Adaptación para móviles */
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
}
@media (max-width: 768px) {
  /* Aumenta el espacio lateral general */
  .navbar .container {
    padding: 15px 5% 15px 8%;
  }

  /* Mueve el botón hamburguesa un poco más a la derecha */
  .menu-toggle {
    margin-right: 5px;
  }
}

/* ===== Servicios ===== */
#servicios {
  text-align: center;
  padding: 60px 20px;
}

#servicios h2 {
  margin-bottom: 40px;
  font-size: 2em;
  color: #222;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px 20px;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.icono-servicio {
  font-size: 48px;
  color: #0078d7; /* azul elegante (podés usar tu color institucional) */
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
  color: #333;
}

.card p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* oscurece la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* por defecto oculto */
}

#overlayContent {
    background: #fff;
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#overlayContent img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: "Segoe UI", Roboto, sans-serif;
}
/* Label fijo arriba */
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  text-align: left; /* fuerza la alineación a la izquierda */
}
/* Inputs y textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="file"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* Placeholder dentro del campo */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
  font-size: 14px;
}
/* Efecto al enfocar */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0078d7;
  box-shadow: 0 0 6px rgba(0,120,215,0.3);
  outline: none;
}
/* Botón */
.contact-form button {
  width: 100%;
  padding: 14px;
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover {
  background: #005fa3;
}
/* Mensaje de alerta */
#alerta {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}
.social-footer{
 display:flex;
 justify-content:center;
 align-items:center;
 gap:20px;
 margin:30px 0;
}

.social-link svg{
 width:28px;
 height:28px;
 color:#0180AF;
 transition:all .3s ease;
}

.social-link:hover svg{
 transform:translateY(-3px);
 opacity:.8;
}
