/* ===============================
   VARIABLES DE MARCA
================================ */

:root {
    --primary-blue: #0E3A5D;
    --secondary-blue: #1F6EA9;
    --dark-blue: #0B2B45;
    --primary-orange: #F36F21;
    --light-gray: #f4f6f8;
    --text-gray: #5f6c7b;
}

/* ===============================
   RESET BÁSICO
================================ */

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--primary-blue);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===============================
   NAVBAR
================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    height: 72px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo {
    height: 132px;
    width: auto;
    transform: scale(1.1);
    margin-top: 5px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--primary-blue);
    margin-left: 30px;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s ease;
}

nav a:hover {
    color: var(--primary-orange);
}

.btn-nav {
    background: var(--primary-orange);
    color: white !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
}

/* ===============================
   HERO HOME
================================ */

.hero {
    background: linear-gradient(135deg, var(--dark-blue), var(--secondary-blue));
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--primary-orange);
    padding: 14px 35px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #d85f1d;
    transform: translateY(-3px);
}

/* ===============================
   MÉTRICAS
================================ */

.metricas {
    background: var(--dark-blue);
    color: white;
    padding: 70px 0;
}

.metricas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    gap: 40px;
}

.metrica h3 {
    font-size: 36px;
    color: var(--primary-orange);
}

/* ===============================
   SERVICIOS HOME
================================ */

.servicios-premium {
    padding: 110px 0;
    background: white;
}

.servicios-header {
    text-align: center;
    margin-bottom: 60px;
}

.servicios-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.servicio-card-premium {
    background: #f9fafc;
    padding: 40px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.servicio-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* ===============================
   SERVICIOS PAGE
================================ */

.hero-servicios {
    background: linear-gradient(135deg, var(--dark-blue), var(--secondary-blue));
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-servicios h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-servicios p {
    font-size: 18px;
    max-width: 700px;
    margin: auto;
}

.diferenciador-servicios {
    padding: 100px 0;
    background: var(--light-gray);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.card-diferencial {
    background: white;
    padding: 35px;
    border-radius: 15px;
    transition: 0.3s ease;
}

.card-diferencial:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.servicio-detalle {
    padding: 110px 0;
    background: white;
}

.servicio-detalle .grid-2 {
    padding: 40px;
    border-radius: 20px;
}

.servicio-detalle.alt {
    background: var(--light-gray);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.imagen-servicio {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.imagen-servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imagen-servicio.small {
    height: 220px;
}

.btn-secundario {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary-orange);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secundario:hover {
    background: #d85f1d;
}

/* ===============================
   POR QUÉ ELEGIRNOS
================================ */

.por-que-elegirnos {
    padding: 120px 0;
    background: white;
}

.por-que-header {
    text-align: center;
    margin-bottom: 60px;
}

.por-que-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.por-que-header p {
    color: var(--text-gray);
}

.por-que-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.por-que-card {
    background: var(--light-gray);
    padding: 35px;
    border-radius: 18px;
    transition: 0.3s ease;
}

.por-que-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* ===============================
   CTA FINAL
================================ */

.cta-final {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: white;
    padding: 140px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 18px;
}

.cta-button-wrapper {
    margin-top: 20px;
}

.btn-cta-final {
    background: var(--primary-orange);
    padding: 16px 45px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s ease;
}

.btn-cta-final:hover {
    transform: translateY(-4px);
}

/* ===============================
   CONTACTO
================================ */

.contacto {
    padding: 110px 0;
    background: var(--light-gray);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacto-form input,
.contacto-form textarea {
    margin-bottom: 15px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100%;
}

.contacto-form button {
    background: var(--primary-orange);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

/* ===============================
   NOSOTROS PAGE
================================ */

.nosotros-section {
    padding: 120px 0;
    background: white;
}

.nosotros-section.alt {
    background: var(--light-gray);
}

.nosotros-section h2 {
    margin-bottom: 20px;
}

.nosotros-section p {
    margin-bottom: 15px;
}

/* ===============================
   CONTACTO PAGE (CORPORATIVO)
================================ */

.contacto-page {
  padding: 120px 0;
  background: white;
}

.contacto-page-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contacto-card {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 45px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.contacto-card h2 {
  margin-bottom: 12px;
}

.contacto-card p {
  color: var(--text-gray);
  margin-bottom: 25px;
}

.contacto-datos {
  display: grid;
  gap: 16px;
  margin: 25px 0;
}

.dato {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
}

.dato-label {
  display: block;
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.dato-value {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.contacto-note {
  margin-top: 15px;
  font-size: 13px;
  color: #d0d7df;
  background: var(--dark-blue);
  padding: 14px 16px;
  border-radius: 14px;
}

.contacto-mini-cta {
  margin-top: 22px;
}

.contacto-form-card {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 55px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.contacto-form-card h2 {
  margin-bottom: 6px;
}

.contacto-form-card .subtext {
  color: var(--text-gray);
  margin-bottom: 25px;
}

.contacto-form-advanced textarea {
  min-height: 140px;
}

.form-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-gray);
}

@media (max-width: 900px) {
  .contacto-page-grid {
    grid-template-columns: 1fr;
  }

  .contacto-card,
  .contacto-form-card {
    padding: 30px;
  }
}

/* ===============================
   COTIZACION PAGE
================================ */

.cotizacion-section {
    padding: 120px 0;
    background: white;
}

.cotizacion-form {
    background: var(--light-gray);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.cotizacion-form h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    min-height: 100px;
}

.form-submit {
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 900px) {
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .cotizacion-form {
        padding: 30px;
    }
}

/* ===============================
   FOOTER COMPONENTE
================================ */

.footer {
    background: var(--dark-blue);
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer p {
    font-size: 14px;
    color: #d0d7df;
}

.footer h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer ul li a {
    color: #d0d7df;
    text-decoration: none;
    transition: 0.3s;
}

.footer ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background: rgba(0,0,0,0.15);
    font-size: 13px;
}

/* ===============================
   WHATSAPP FLOAT BUTTON
================================ */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
}

@keyframes pulseWhats {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: pulseWhats 2.5s infinite;
  z-index: -1;
}

/* ===============================
   ANIMACIONES SUAVES
================================ */

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-enabled .fade-in-section {
    opacity: 0;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

/* ===============================
    ICONOS SOCIALES
================================ */

.social-icons a {
    color: #d0d7df;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-orange);
    transform: translateY(-3px);
}

/* ===============================
   VALIDACIONES UX (FORM)
================================ */

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e5484d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15);
}

.form-group.has-success input,
.form-group.has-success select,
.form-group.has-success textarea {
  border-color: #2fbf71;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.12);
}

.field-msg {
  margin-top: 8px;
  font-size: 12px;
  color: #e5484d;
  line-height: 1.3;
}

button.is-disabled,
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* ===============================
   CAMPOS DINÁMICOS COTIZACION
================================ */
.campos-dinamicos {
  margin-top: 40px;
}

.hidden {
  display: none;
}

.grupo-servicio {
  margin-top: 30px;
}

/* Honeypot invisible */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {

    nav a {
        margin-left: 15px;
        font-size: 14px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .hero-servicios h1 {
        font-size: 28px;
    }

}

/* ===============================
   TOASTS DE NOTIFICACIÓN
================================ */
.toast {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 14px 22px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #1c3f95;
}

.toast-error {
  background: #c62828;
}