/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
  background-color: #fff;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
}

.logo a {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0077ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo span {
  color: #000;
  font-weight: 600;
}

/* NAV */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #0077ff;
}

.btn-cotizar {
  background: #0077ff;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-cotizar:hover {
  background: #005fcc;
}

/* ======== HERO ======== */
.hero {
  background: #f8faff;
  text-align: center;
  padding: 11rem 2rem 6rem;
}

.hero-content {
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: 2.8rem;
  color: #0d2b5c;
  margin-bottom: 1.2rem;
}

.hero p {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: #0077ff;
  color: #fff;
}

.btn-outline {
  border: 2px solid #0077ff;
  color: #0077ff;
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-3px);
}

/* ======== SECCIONES GENERALES ======== */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  background: #ffffff;
}

.section:nth-child(even) {
  background: #f9fafc;
}

.section-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  flex-wrap: wrap;
}

.section-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 15px;
}

.section-text {
  flex: 1;
  min-width: 300px;
}

.section-text h2 {
  color: #0d2b5c;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-text p {
  color: #555;
  margin-bottom: 1rem;
}

.section-text ul {
  list-style: none;
  padding: 0;
}

.section-text ul li {
  margin-bottom: 0.5rem;
  color: #333;
}

.section-text i {
  color: #0077ff;
  margin-right: 0.5rem;
}

.section-reverse .section-content {
  flex-direction: row-reverse;
}

.btn-secondary {
  display: inline-block;
  background: #0077ff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #0d2b5c;
}

/* ======== PROYECTOS ======== */
.projects {
  background: #ffffff;
  text-align: center;
  padding: 5rem 2rem;
}

.projects h2 {
  color: #0d2b5c;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.project-card {
  background: #f8faff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  max-width: 320px;
  text-align: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h4 {
  color: #0077ff;
  margin: 1rem;
}

.project-card p {
  color: #555;
  margin: 0 1rem 1.2rem;
}

/* ======== FORMULARIO DE COTIZACIÓN ======== */
.contacto-section {
  background: #f9fafc;
  padding: 5rem 2rem;
}

.contacto-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}

.cotizar-form {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.cotizar-form h2 {
  color: #0d2b5c;
  text-align: center;
  margin-bottom: 1rem;
}

.form-subtitle {
  color: #555;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.cotizar-form input,
.cotizar-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: inherit;
  transition: 0.3s ease;
}

.cotizar-form input:focus,
.cotizar-form textarea:focus {
  border-color: #0077ff;
  box-shadow: 0 0 5px rgba(0, 119, 255, 0.2);
  outline: none;
}

.cotizar-form button {
  width: 100%;
  background: linear-gradient(135deg, #0077ff, #0d2b5c);
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cotizar-form button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0d2b5c, #0077ff);
}

#mensaje {
  text-align: center;
  margin-top: 1rem;
  color: #0077ff;
}

/* ==== FIX PARA CAMPO TELEFÓNICO CON BANDERA (INTL-TEL-INPUT) ==== */
.iti {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
}

.iti__flag-container {
  position: static !important;
  margin-right: 8px !important;
}

input[type="tel"] {
  flex: 1 !important;
  height: 48px !important;
  border-radius: 8px !important;
  border: 1px solid #ccc !important;
  padding: 0.9rem !important;
  font-size: 1rem !important;
  background: #fff !important;
}

input[type="tel"]:focus {
  border-color: #0077ff !important;
  box-shadow: 0 0 5px rgba(0, 119, 255, 0.3) !important;
  outline: none !important;
}

/* ======== INFO BOX ======== */
.info-box {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
  color: #0077ff;
  margin-bottom: 1rem;
}

.info-box p {
  color: #555;
  margin-bottom: 1rem;
}

.info-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.info-benefits li {
  margin-bottom: 0.6rem;
  color: #333;
}

.info-benefits i {
  color: #0077ff;
  margin-right: 0.6rem;
}

.info-cta {
  font-weight: 600;
  color: #0d2b5c;
  text-align: center;
  margin-top: 1rem;
}

/* CONTENEDOR PRINCIPAL extra */
.cotizar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cotizar-info h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cotizar-info h1 span {
  color: #0077ff;
  font-weight: bold;
}

.cotizar-info p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

.cotizar-info .beneficios {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.cotizar-info .beneficios li {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.cotizar-info .beneficios li i {
  margin-right: 10px;
  color: #0077ff;
}

/* FORM */
.form-container {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .section-content,
  .section-reverse .section-content {
    flex-direction: column;
  }

  .hero {
    padding-top: 9rem;
  }

  .cotizar-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cotizar-info .beneficios li {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .cotizar-form,
  .info-box {
    padding: 2rem;
  }
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
  nav,
  .btn-cotizar {
    display: none;
  }

  .header-content {
    justify-content: center;
  }

  .logo a {
    font-size: 1.8rem;
  }
}

/* ===== BOTÓN FLOTANTE (MÓVIL) ===== */
.btn-flotante-mobile {
  display: none;
}

@media (max-width: 768px) {
  .btn-flotante-mobile {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0077ff;
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: 0.3s ease;
  }

  .btn-flotante-mobile:hover {
    background: #005fcc;
    transform: translateY(-2px);
  }
}

/* ===== FOOTER ===== */
footer {
  background: #0a0a0a;
  color: #eaeaea;
  padding: 3rem 1rem;
  border-top: 2px solid #0077ff;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2.5rem;
  border-bottom: 1px solid #222;
  padding-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h2 {
  color: #0077ff;
  font-weight: 700;
}

.footer-brand p {
  color: #ccc;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-links h3,
.footer-social h3 {
  color: #0077ff;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #eaeaea;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  transition: color 0.3s, transform 0.2s;
}

.footer-links a:hover {
  color: #0077ff;
  transform: translateX(3px);
}

.social-icons a {
  color: #eaeaea;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #0077ff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom a {
  color: #0077ff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .social-icons a {
    margin: 0 8px;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }
}
