/* ==================================================
   INICIO: IMPORTS Y VARIABLES GLOBALES
   ================================================== */
/* IMPORTAR FUENTE */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* VARIABLES GLOBALES */
:root {
  --blanco: #FFFFFF;
  --azul-principal: #2563eb;
  --azul-oscuro: #1e40af;
  --gris-claro: #f3f4f6;
  --gris-medio: #9ca3af;
  --gris-oscuro: #4b5563;
  --negro: #111827;
}
/* FIN: IMPORTS Y VARIABLES GLOBALES */
/* ================================================== */


/* ==================================================
   INICIO: ESTILOS GENERALES Y RESET
   ================================================== */
* { 
  box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--gris-claro);
  color: var(--negro);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ACCESIBILIDAD - FOCO VISIBLE */
a:focus, 
button:focus, 
input:focus, 
select:focus, 
textarea:focus {
  outline: 3px solid rgba(37,99,235,0.18);
  outline-offset: 2px;
  border-radius: 6px;
}

/* PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
  * { 
    animation-duration: 0.001ms !important; 
    transition-duration: 0.001ms !important; 
    scroll-behavior: auto !important; 
  }
}
/* FIN: ESTILOS GENERALES Y RESET */
/* ================================================== */


/* ==================================================
   INICIO: SECCIÓN PRINCIPAL Y PORTADA
   ================================================== */
/* Portada principal */
.portada {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.portada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.portada .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--blanco);
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px 40px;
  border-radius: 10px;
}

.portada h1 { 
  font-size: 2.5rem; 
  margin-bottom: 10px; 
}

.portada p { 
  font-size: 1.2rem; 
}

/* Contenido principal */
.contenido-principal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 80px;
  background-color: var(--gris-claro);
  align-items: center;
}

.contenido-principal .columna h2 { 
  color: var(--azul-principal); 
  font-size: 2rem; 
  margin-bottom: 15px; 
}

.contenido-principal .columna p { 
  color: var(--gris-oscuro); 
  line-height: 1.6; 
  font-size: 1rem; 
}

.contenido-principal iframe { 
  border-radius: 10px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

/* Sección imagen + texto */
.imagen-texto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  padding: 100px 10%;
  background-color: var(--gris-claro);
  flex-wrap: wrap;
}

.imagen-izquierda img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.imagen-izquierda img:hover { 
  transform: scale(1.05); 
}

.texto-derecha { 
  flex: 1; 
  max-width: 600px; 
  color: var(--gris-oscuro); 
}

.texto-derecha h3 { 
  color: var(--azul-principal); 
  font-size: 1.8rem; 
  margin-bottom: 15px; 
  font-weight: 700; 
}

.texto-derecha p { 
  line-height: 1.7; 
  font-size: 1rem; 
  color: var(--negro); 
}

/* Responsivo */
@media (max-width: 900px) {
  .contenido-principal { 
    grid-template-columns: 1fr; 
    padding: 40px 20px; 
    text-align: center; 
  }
  
  .contenido-principal iframe { 
    width: 100%; 
    height: 250px; 
  }
}

@media (max-width: 768px) {
  .imagen-texto { 
    flex-direction: column; 
    text-align: center; 
    padding: 40px 5%; 
  }
  
  .texto-derecha h3 { 
    font-size: 1.5rem; 
  }
  
  .texto-derecha p { 
    font-size: 0.95rem; 
  }
}
/* FIN: SECCIÓN PRINCIPAL Y PORTADA */
/* ================================================== */


/* ==================================================
   INICIO: REPRODUCTOR DE VIDEO
   ================================================== */
.columna.derecha {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 10px;
}

.video-container {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
}

.video-container video,
.video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.video-container:hover video,
.video-container:hover iframe {
  transform: scale(1.02);
}

/* Responsivo */
@media (max-width: 768px) {
  .columna.derecha { 
    padding: 5px; 
  }
  
  .video-container { 
    max-width: 100%; 
  }
}
/* FIN: REPRODUCTOR DE VIDEO */
/* ================================================== */


/* ==================================================
   INICIO: FOOTER
   ================================================== */
.footer {
  background-color: #000;
  color: #fff;
  padding: 30px 0 20px;
  margin-top: 50px;
  border-top: 4px solid #222;
  font-weight: bold;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-col { 
  flex: 1; 
  min-width: 250px; 
  text-align: center; 
}

/* Enlaces legales */
.izquierda .legal-links { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  align-items: flex-start; 
}

.legal-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
  font-weight: bold;
}

.legal-link:hover { 
  color: #ccc;
  transform: translateX(5px); 
}

.legal-link::after { 
  content: ''; 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 0; 
  height: 1px; 
  background: #fff; 
  transition: width 0.3s ease; 
}

.legal-link:hover::after { 
  width: 100%; 
}

/* Centro del footer */
.centro { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 15px; 
}

.copyright { 
  font-size: 16px; 
  font-weight: bold; 
  color: #fff; 
  letter-spacing: 0.5px; 
}

/* Redes sociales */
.social-links { 
  display: flex; 
  gap: 15px; 
  justify-content: center; 
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover { 
  transform: translateY(-3px); 
  background: rgba(255,255,255,0.2); 
  border-color: #fff; 
}

.social-link.facebook:hover { background: #3b5998; color: #fff; }
.social-link.instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.social-link.x:hover { background: #000; color: #fff; }
.social-link.linkedin:hover { background: #0077b5; color: #fff; }

/* Derecha */
.derecha .location { 
  font-size: 15px; 
  color: #fff; 
  text-align: right; 
  font-weight: bold; 
  letter-spacing: 0.5px; 
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container { 
    flex-direction: column; 
    text-align: center; 
    gap: 30px; 
  }
  
  .footer-col { 
    min-width: 100%; 
  }
  
  .izquierda .legal-links { 
    align-items: center; 
  }
  
  .derecha .location { 
    text-align: center; 
  }
  
  .social-links { 
    gap: 10px; 
  }
  
  .social-link { 
    width: 35px; 
    height: 35px; 
  }
}

@media (max-width: 480px) {
  .footer { 
    padding: 25px 0 15px; 
  }
  
  .footer-container { 
    padding: 0 15px; 
    gap: 25px; 
  }
  
  .legal-links { 
    flex-direction: column; 
    gap: 8px; 
  }
  
  .copyright { 
    font-size: 14px; 
  }
  
  .location { 
    font-size: 14px; 
  }
}
/* FIN: FOOTER */
/* ================================================== */


/* ==================================================
   INICIO: CHAT DE CONTACTO
   ================================================== */
.seccion-chat { 
  padding: 80px 20px; 
  background: var(--gris-claro); 
}

.contenedor-chat { 
  max-width: 800px; 
  margin: 0 auto; 
}

.contenedor-chat h2 { 
  text-align: center; 
  color: var(--azul-oscuro); 
  font-size: 2.5rem; 
  margin-bottom: 15px; 
}

.descripcion-chat { 
  text-align: center; 
  color: var(--gris-oscuro); 
  font-size: 1.1rem; 
  margin-bottom: 40px; 
}

.chat-container {
  background: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.chat-messages { 
  height: 300px; 
  padding: 20px; 
  overflow-y: auto; 
  border-bottom: 1px solid var(--gris-claro); 
}

.message { 
  display: flex; 
  margin-bottom: 20px; 
  animation: fadeIn 0.3s ease-in; 
}

@keyframes fadeIn { 
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  } 
  to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
}

.bot-message { 
  align-items: flex-start; 
}

.user-message { 
  align-items: flex-end; 
  flex-direction: row-reverse; 
}

.message-avatar { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: bold; 
  margin: 0 10px; 
  flex-shrink: 0; 
}

.bot-message .message-avatar { 
  background: var(--azul-principal); 
  color: var(--blanco); 
}

.user-message .message-avatar { 
  background: var(--gris-medio); 
  color: var(--blanco); 
}

.message-content { 
  max-width: 70%; 
  padding: 15px; 
  border-radius: 15px; 
  line-height: 1.5; 
}

.bot-message .message-content { 
  background: var(--gris-claro); 
  border-bottom-left-radius: 5px; 
  color: var(--gris-oscuro); 
}

.user-message .message-content { 
  background: var(--azul-principal); 
  color: var(--blanco); 
  border-bottom-right-radius: 5px; 
}

.chat-questions { 
  padding: 20px; 
  display: grid; 
  gap: 10px; 
}

.question-btn {
  padding: 15px 20px;
  background: var(--blanco);
  border: 2px solid var(--azul-principal);
  border-radius: 10px;
  color: var(--azul-principal);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.question-btn:hover { 
  background: var(--azul-principal); 
  color: var(--blanco); 
  transform: translateY(-2px); 
}

.question-btn:active { 
  transform: translateY(0); 
}

/* Responsivo */
@media (max-width: 768px) {
  .seccion-chat { 
    padding: 50px 15px; 
  }
  
  .contenedor-chat h2 { 
    font-size: 2rem; 
  }
  
  .chat-messages { 
    height: 250px; 
  }
  
  .message-content { 
    max-width: 85%; 
  }
  
  .chat-questions { 
    grid-template-columns: 1fr; 
  }
}
/* FIN: CHAT DE CONTACTO */
/* ================================================== */


/* ==================================================
   INICIO: CARRUSEL
   ================================================== */
.carrusel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background-color: var(--gris-claro);
}

.carrusel-imagenes {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carrusel-imagenes img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Botones del carrusel */
.carrusel-boton {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(17, 24, 39, 0.6);
  color: var(--blanco);
  border: none;
  padding: 15px;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.2s;
  z-index: 10;
}

.carrusel-boton:hover { 
  background-color: var(--azul-principal); 
  transform: translateY(-50%) scale(1.1); 
}

.carrusel-boton.izq { 
  left: 15px; 
}

.carrusel-boton.der { 
  right: 15px; 
}

/* Responsivo */
@media (max-width: 768px) {
  .carrusel { 
    max-width: 90%; 
  }
  
  .carrusel-imagenes img { 
    aspect-ratio: 16 / 9; 
  }
  
  .carrusel-boton { 
    padding: 10px; 
    font-size: 22px; 
  }
}
/* FIN: CARRUSEL */
/* ================================================== */


/* ==================================================
   INICIO: FORMULARIOS Y COMPONENTES
   ================================================== */
/* Estilos base para formularios */
.form-grupo { 
  display: flex; 
  flex-direction: column; 
  margin-bottom: 20px; 
}

.form-grupo label { 
  font-weight: 600; 
  color: var(--negro); 
  margin-bottom: 6px; 
  
}

.form-grupo input, 
.form-grupo select, 
.form-grupo textarea {
  padding: 10px;
  border: 2px solid var(--azul-oscuro); /* ← aquí lo cambié */
  border-radius: 6px;
  font-size: 15px;
  background-color: var(--blanco);
  color: var(--negro);
}


/* Botones */
.btn-principal {
  background-color: var(--azul-principal);
  color: var(--blanco);
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-principal:hover { 
  background-color: var(--azul-oscuro); 
}

.btn-secundario { 
  background-color: var(--gris-oscuro); 
  color: var(--blanco); 
  border: none; 
  padding: 10px 20px; 
  border-radius: 6px; 
  margin-top: 15px; 
  cursor: pointer; 
}

.btn-secundario:hover { 
  background-color: var(--negro); 
}

.resultado { 
  margin-top: 30px; 
  padding: 20px; 
  background-color: var(--gris-claro); 
  border-radius: 10px; 
  text-align: center; 
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05); 
}
/* FIN: FORMULARIOS Y COMPONENTES */
/* ================================================== */
/* ==================================================
   PERFIL DEL USUARIO – DISEÑO PROFESIONAL PREMIUM
   ================================================== */

/* Tipografía moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --azul-principal: #003864;
    --azul-oscuro: #002c50;
    --gris-claro: #e5e7eb;
    --gris-oscuro: #4b5563;
    --verde: #16a34a;
    --rojo: #dc2626;
    --blanco: #ffffff;
}

/* =============================
   CONTENEDOR GENERAL
============================= */
.perfil-contenedor {
    max-width: 900px;
    margin: 80px auto 40px;
    background: var(--blanco);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    animation: fadeIn 0.3s ease;
}

/* Animación elegante */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================
   HEADER DEL PERFIL
============================= */
.perfil-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    color: var(--blanco);
    padding: 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 -6px 15px rgba(0,0,0,0.15);
}

.perfil-header h2 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 600;
}

/* Botón salir */
.boton-salir {
    padding: 10px 18px;
    background: rgba(255,255,255,0.20);
    border-radius: 8px;
    text-decoration: none;
    color: var(--blanco);
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 500;
    transition: all 0.25s ease;
}

.boton-salir:hover {
    background: rgba(255,255,255,0.30);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}

/* =============================
   SECCIÓN: MIS COTIZACIONES
============================= */
.cotizaciones-seccion {
    padding: 30px;
}

.seccion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gris-claro);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.seccion-header h3 {
    color: var(--azul-oscuro);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Botón Nueva Cotización */
.btn-nueva-cotizacion {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    color: var(--blanco);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-nueva-cotizacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* =============================
   TARJETAS DE COTIZACIÓN
============================= */
.lista-cotizaciones {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-cotizacion {
    background: var(--blanco);
    padding: 20px;
    border-radius: 16px;
    border-left: 6px solid var(--azul-principal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
}

.item-cotizacion:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ID badge */
.id-ref {
    background: #e8edff;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid #b7c3ff;
    color: #2d3e94;
    font-size: 0.80rem;
    margin-top: 8px;
    font-weight: 600;
}

/* =============================
   BOTONES
============================= */
.acciones-cotizacion {
    display: flex;
    gap: 10px;
}

.btn-ver,
.btn-eliminar,
.btn-confirmar-cotizacion,
.btn-confirmado,
.btn-respuesta {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

/* Ver PDF */
.btn-ver {
    background: var(--azul-principal);
    color: var(--blanco);
    text-decoration: none;
}
.btn-ver:hover {
    background: var(--azul-oscuro);
    transform: translateY(-2px);
}

/* Confirmar */
.btn-confirmar-cotizacion {
    background: var(--verde);
    color: var(--blanco);
}
.btn-confirmar-cotizacion:hover {
    background: #15803d;
    transform: translateY(-2px);
}

/* Confirmado */
.btn-confirmado {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    cursor: default;
}

/* Respuesta */
.btn-respuesta {
    background: var(--azul-principal);
    color: var(--blanco);
}
.btn-respuesta:hover {
    background: var(--azul-oscuro);
}

/* Eliminar */
.btn-eliminar {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}
.btn-eliminar:hover {
    background: #fca5a5;
    color: var(--blanco);
}

/* =============================
   CUANDO NO HAY COTIZACIONES
============================= */
.sin-cotizaciones {
    text-align: center;
    padding: 60px 20px;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: var(--gris-oscuro);
}

/* =============================
          MODAL PREMIUM
============================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: var(--blanco);
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    animation: modalDown 0.3s ease;
}

@keyframes modalDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0);}
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gris-claro);
    background: #f7f9fc;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--gris-claro);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f7f9fc;
}

.btn-cancelar {
    background: var(--gris-claro);
    color: #111;
    border-radius: 8px;
}

.btn-confirmar {
    background: var(--rojo);
    color: var(--blanco);
    border-radius: 8px;
}

.btn-confirmar:hover {
    background: #b91c1c;
}

/* =============================
         RESPONSIVO
============================= */
@media (max-width: 768px) {
    .item-cotizacion {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .acciones-cotizacion {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .acciones-cotizacion {
        flex-direction: column;
        width: 100%;
    }

    .btn-ver,
    .btn-eliminar,
    .btn-confirmar-cotizacion,
    .btn-confirmado,
    .btn-respuesta {
        width: 100%;
        text-align: center;
    }
}
/* ==================================================
   FIN: PERFIL DEL USUARIO – DISEÑO PROFESIONAL PREMIUM
   ================================================== */

/* ================================
 formulario de cotizador
================================ */

.cotizador-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

/* Título principal */
.cotizador-container h1 {
    font-size: 32px;
    font-weight: 700;
    color: #003864;
    margin-bottom: 10px;
}

/* Subtítulo */
.cotizador-container p {
    color: #4a4a4a;
    margin-bottom: 35px;
    font-size: 15px;
}

/* ================================
   CARD PRINCIPAL
================================ */
.form-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #003864;
    margin-bottom: 25px;
}

/* ================================
   SECCIONES (Cards internas)
================================ */
.section-card {
    background: #ffffff;
    border: 2px solid #e5e9f2;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Encabezado de sección */
.section-title {
    background: #003864;
    color: white;
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 18px;
    display: inline-block;
}

/* ================================
   GRILLA DE CAMPOS
================================ */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Etiquetas */
.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #003864;
    margin-bottom: 5px;
}

/* Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    width: 70%;
    padding: 12px;
    border: 2px solid #d1d9e6;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: white;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #003864;
    box-shadow: 0 0 4px rgba(0, 56, 100, 0.2);
}

/* ================================
   BOTÓN
================================ */
.btn-enviar {
    display: block;
    width: 100%;
    padding: 15px;
    background: #003864;
    border: none;
    color: white;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-enviar:hover {
    background: #005999;
}

/* ================================
   HAZMAT
================================ */
#hazmat_upload_wrapper {
    display: none;
    margin-top: 15px;
    background: #eef7ff;
    border: 1px dashed #2563eb;
    padding: 14px;
    border-radius: 10px;
    grid-column: 1 / -1;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 720px) {

    .cotizador-container {
        padding: 18px;
        margin: 20px 10px;
    }

    .form-row {
        flex-direction: column;
    }
}

/* FIN: COTIZADOR */



/* ==================================================
   INICIO: SERVICIOS
   ================================================== */
.servicios-contenedor { 
  padding: 80px 20px; 
  background: var(--gris-claro); 
  min-height: 100vh; 
}

.servicios-principales { 
  max-width: 1200px; 
  margin: 0 auto; 
}

.servicios-principales h2 { 
  text-align: center; 
  font-size: 2.5rem; 
  color: var(--azul-oscuro); 
  margin-bottom: 50px; 
  font-weight: 700; 
}

.resaltado { 
  color: var(--azul-principal); 
  position: relative; 
}

.resaltado::after { 
  content: ''; 
  position: absolute; 
  bottom: -5px; 
  left: 0; 
  width: 100%; 
  height: 3px; 
  background: var(--azul-principal); 
  border-radius: 2px; 
}

/* Lista de servicios */
.servicios-lista ul { 
  list-style: none; 
  padding-left: 0; 
}

.servicios-lista li { 
  position: relative; 
  padding-left: 28px; 
  margin-bottom: 18px; 
}

.servicios-lista li::before { 
  content: ''; 
  position: absolute; 
  left: 0; 
  top: 10px; 
  width: 12px; 
  height: 12px; 
  background: var(--azul-principal); 
  border-radius: 50%; 
  display: inline-block; 
}

/* Cards de servicios */
.servicios-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
  align-items: start;
}

.servicio-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--blanco);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.servicio-icono {
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicio-icono img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.servicio-contenido { 
  flex: 1; 
}

.servicio-contenido h3 {
  margin: 0 0 6px;
  color: var(--azul-oscuro);
  font-size: 1.1rem;
  font-weight: 700;
}

.servicio-contenido p {
  margin: 0;
  color: var(--gris-oscuro);
  line-height: 1.6;
}

.servicio-item:hover,
.servicio-item:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(2,6,23,0.09);
}

/* Compatibilidad con selector antiguo */
.servicios-lista ul { 
  margin: 0; 
  padding: 0; 
  list-style: none; 
}

.servicios-lista ul li { 
  margin-bottom: 16px; 
}

/* Responsivo */
@media (max-width: 900px) {
  .servicios-lista { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 480px) {
  .servicios-lista { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  
  .servicio-item { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    padding: 16px; 
  }
  
  .servicio-icono { 
    margin-bottom: 10px; 
    flex: 0 0 auto; 
  }
  
  .servicio-contenido h3 { 
    font-size: 1.05rem; 
  }
}
/* FIN: SERVICIOS */
/* ================================================== */


/* ================================
   ADAPTACIONES MOBILE (mejorar UX en teléfonos)
   ================================ */

/* Mostrar botón hamburguesa y preparar menú móvil */
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .menu { 
    display: none; /* mostrado con JS añadiendo .open a .menu */
    position: fixed;
    top: 64px;
    right: 0;
    width: 84%;
    max-width: 320px;
    height: calc(100vh - 64px);
    background: var(--blanco);
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(2,6,23,0.12);
    z-index: 1200;
    overflow-y: auto;
  }
  .menu.open { display: flex; transform: translateX(0); }
  .navbar { padding: 8px 14px; }
  .logo img { height: 56px; }
  .menu a { padding: 12px 10px; font-size: 15px; }
  .saludo-wrapper { display: none; } /* simplifica cabecera en móvil */
}

/* Ajustes generales para pantallas pequeñas (teléfono) */
@media (max-width: 480px) {
  /* Portada y hero */
  .portada { height: 42vh; }
  .portada .overlay { padding: 12px 18px; }
  .portada h1 { font-size: 1.4rem; }
  .portada p { font-size: 0.95rem; }

  /* Contenido principal */
  .contenido-principal {
    grid-template-columns: 1fr;
    padding: 28px 16px;
    gap: 20px;
    text-align: left;
  }

  /* Formularios: inputs al 100% */
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100% !important;
  }

  /* Cotizador: tarjeta y padding */
  .cotizador-container { padding: 14px; margin: 18px 12px; }
  .form-card { padding: 18px; border-radius: 12px; }

  /* Botones en bloque para táctil */
  .btn-principal,
  .btn-enviar,
  .btn-nueva-cotizacion {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  /* Carrusel: reducir altura */
  .carrusel { margin: 24px auto; max-width: 96%; }
  .carrusel-imagenes img { aspect-ratio: 16/9; height: auto; }

  /* Perfil: tarjetas verticales ya cubiertas, ajustar espacios */
  .perfil-contenedor { margin: 20px 12px; }

  /* Footer: compactar */
  .footer-container { padding: 18px; gap: 18px; }
  .logo img { height: 48px; }

  /* Chat: adaptar altura */
  .chat-messages { height: 220px; }

  /* Menús desplegables full width */
  .dropdown-content { min-width: 200px; right: 8px; left: 8px; }
}

/* Micro-ajustes para teléfonos muy pequeños */
@media (max-width: 360px) {
  .portada h1 { font-size: 1.15rem; }
  .portada p { font-size: 0.9rem; }
  .logo img { height: 44px; }
  .menu a { font-size: 14px; padding: 10px 8px; }
  .form-group label { font-size: 13px; }
  .btn-principal, .btn-enviar { font-size: 15px; padding: 10px; }
}

/* Utilities: ocultar elementos que rompen UX táctil si hace falta */
@media (max-width: 720px) {
  .texto-derecha { text-align: left; }
}