/* =========================
   Base / Layout / Tipografía
   ========================= */
html, body { height: 100%; }

body {
  display: flex;              /* contenedor flex vertical */
  flex-direction: column;
  min-height: 100svh;         /* corrige 100vh en mobile */
  margin: 0;
  font-family: Montserrat, sans-serif;
}

main { flex: 1; }             /* empuja el footer al fondo */

/* Logo genérico */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: auto;                /* Mantiene proporciones */
  object-fit: contain;
  display: block;
}

/* Imagen de gracias */
.gracias-card-index img {
  max-height: 300px;
  margin-bottom: 20px;
  border-radius: 12px;        /* esquinas redondeadas */
}

/* =========================
   Variables de tema UNIFICADAS
   ========================= */
:root {
  --color-principal: #19346e;        /* UNIFICADO: mismo azul del hero */
  --color-principal-oscuro: #0d1b3e; /* para degradados */
  --color-texto: #ffffff;            /* texto navbar/footer */
  --padding-y: 10px;                 /* padding vertical footer */
  --bs-primary-text-emphasis: #19346e;
}

/* =========================
   Navbar (Bootstrap dark) - MEJORADO
   ========================= */
.navbar.navbar-dark {
  background: linear-gradient(135deg, var(--color-principal), var(--color-principal-oscuro)) !important;
  color: var(--color-texto);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0.5rem 0; /* Más padding vertical para acomodar logo grande */
}
.navbar-brand img {
  height: 120px; /* Aumentado de 90px a 120px */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.navbar-brand img:hover {
  transform: scale(1.05);
}

/* Responsive - Logo más chico en mobile */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 80px; /* En mobile un poco más chico */
  }
}

/* =========================
   Footer - MEJORADO
   ========================= */
.footer {
  background: linear-gradient(135deg, var(--color-principal), var(--color-principal-oscuro));
  color: var(--color-texto);
  padding: var(--padding-y) 10px;
  font-size: 14px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-info {
  font-size: 14px;
  line-height: 1.4;
}
.footer-super img {
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.footer-super img:hover {
  opacity: 1;
}

/* =========================
   Botón primario (marca)
   ========================= */
.btn-primary{
  background-color: var(--color-principal);
  border-color: var(--color-principal);
}
.btn-primary:hover,
.btn-primary:focus{
  filter: brightness(1.08);
  background-color: var(--color-principal);
  border-color: var(--color-principal);
}

/* =========================
   Página Siniestros
   ========================= */
.siniestro-icon{
  height: 72px;            /* ajustá si querés más grande/chico */
  width: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.siniestro-card{
  transition: transform .2s ease, box-shadow .2s ease;
  background-color: #fff;
}
.siniestro-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* Tooltip personalizado Bootstrap 5 */
.custom-tooltip {
  --bs-tooltip-bg: #d31515;
  --bs-tooltip-color: #f8f9fa;
  --bs-tooltip-border-radius: 0.5rem;
  --bs-tooltip-font-size: 0.875rem;
  --bs-tooltip-padding-x: 0.75rem;
  --bs-tooltip-padding-y: 0.5rem;
  --bs-tooltip-max-width: 250px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.btn-area-clientes {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* =========================
   Scrollbar (WebKit-based) - MEJORADO
   ========================= */
/* Chrome, Edge, Opera, Safari */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track {
  background: #ffffff;       /* Fondo blanco */
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-principal), var(--color-principal-oscuro));
  border-radius: 5px;
  border: 2px solid #ffffff; /* Borde blanco */
  transition: background 0.3s ease, transform 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-principal-oscuro), #0d6efd);
  transform: scaleX(1.1); /* Efecto sutil */
}

/* =========================
   Carousel (Hero)
   ========================= */
.hero-carousel .carousel-item img {
  height: 500px;             /* altura desktop */
  object-fit: cover;         /* recorta para mantener proporción */
}
@media (max-width: 768px) {
  .hero-carousel .carousel-item img {
    height: 300px;           /* altura mobile */
  }
}

/* =========================
   Flotante WhatsApp
   ========================= */
.whatsapp-float {
  position: fixed;
  width: 90px;
  height: 90px;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img {
  width: 35px;
  height: 35px;
}
.whatsapp-float:focus {
  outline: 3px solid #128C7E;
  outline-offset: 3px;
}

/* =========================
   Utilidades varias
   ========================= */
.input-center { text-align: center; }
.label-area-cliente { padding-top: 5px; }
.btn-sesion { color: #b53737 !important; }

/* =========================
   Print: solo historial
   ========================= */
@media print {
  /* Ocultar todo por defecto */
  body * { visibility: hidden; }

  /* Mostrar solo historial */
  #historial, #historial * { visibility: visible; }
  #historial {
    position: relative;
    margin-top: 100px; /* espacio para logo + título */
  }

  /* Cabecera fija en la versión impresa */
  .print-header {
    display: block !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 2px solid #000;
  }
  .print-header img {
    height: 50px;
    margin-bottom: 5px;
  }
  .print-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
  }

  /* Ocultar botones del historial */
  #historial button { display: none !important; }
  
}

/* ====================================
   MEJORAS UX/UI - INDEX
   ==================================== */

/* Hero Section Mejorado */
.hero-section {
  background: linear-gradient(135deg, rgba(25, 52, 110, 0.95), rgba(13, 27, 62, 0.9)), 
              url('../images/hero-bg.jpg') center/cover;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: #0d6efd;
  border: none;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
  background: #0b5ed7;
}

.btn-hero-secondary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-hero-secondary:hover {
  background: white;
  color: #19346e;
  transform: translateY(-3px);
}

/* Trust Badges */
.trust-badges {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0.9;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.trust-badge i {
  font-size: 1.5rem;
  color: #ffc107;
}

/* Cotización Rápida */
.cotizacion-rapida {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.cotizacion-rapida h3 {
  color: #19346e;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cotizacion-rapida .subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
}

.form-cotizacion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-cotizacion .form-control,
.form-cotizacion .form-select {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: border-color 0.3s;
}

.form-cotizacion .form-control:focus,
.form-cotizacion .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.btn-cotizar {
  grid-column: 1 / -1;
  padding: 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  border: none;
  transition: all 0.3s;
}

.btn-cotizar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

/* Servicios/Productos */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.servicio-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid #f8f9fa;
  height: 100%;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: #0d6efd;
}

.servicio-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.servicio-card h3 {
  color: #19346e;
  font-weight: 700;
  margin-bottom: 1rem;
}

.servicio-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

.servicio-card ul li {
  padding: 0.5rem 0;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.servicio-card ul li::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
}

.btn-servicio {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid #0d6efd;
  color: #0d6efd;
  background: transparent;
  transition: all 0.3s;
}

.btn-servicio:hover {
  background: #0d6efd;
  color: white;
}

/* Carrusel de Servicios */
#serviciosCarousel {
  margin-top: 3rem;
}

#serviciosCarousel .carousel-inner {
  padding: 20px 0;
}

#serviciosCarousel .carousel-item {
  transition: transform 0.8s ease-in-out;
}

/* Indicadores del carrusel */
#serviciosCarousel .carousel-indicators {
  margin-bottom: -30px;
}

#serviciosCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #19346e;
  opacity: 0.3;
  border: none;
  transition: all 0.3s;
}

#serviciosCarousel .carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
  background-color: #0d6efd;
}

/* Controles del carrusel (flechas) */
#serviciosCarousel .carousel-control-prev,
#serviciosCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #19346e, #0d1b3e);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s;
}

#serviciosCarousel .carousel-control-prev {
  left: -25px;
}

#serviciosCarousel .carousel-control-next {
  right: -25px;
}

#serviciosCarousel .carousel-control-prev:hover,
#serviciosCarousel .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

#serviciosCarousel .carousel-control-icon {
  display: inline-block;
  font-size: 1.5rem;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  #serviciosCarousel .carousel-control-prev,
  #serviciosCarousel .carousel-control-next {
    display: none;
  }
  
  #serviciosCarousel .carousel-indicators {
    margin-bottom: -10px;
  }
  
  .servicio-card {
    margin-bottom: 2rem;
  }
}

/* Stats/Valores */
.stats-section {
  background: linear-gradient(135deg, #19346e, #0d1b3e);
  color: white;
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 1rem;
}

.stat-number i {
  font-size: 3.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.4;
}

/* FAQ */
.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: #19346e;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s;
  padding: 0 1.5rem;
}

.faq-answer.show {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* Mejoras generales */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #19346e;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Sección Nosotros - Logo */
.nosotros-logo-container {
  display: inline-block;
}

.nosotros-logo {
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(25, 52, 110, 0.15));
  transition: transform 0.3s ease;
  /* Cambiar color del SVG blanco a azul corporativo */
  filter: brightness(0) saturate(100%) invert(17%) sepia(45%) saturate(1847%) hue-rotate(192deg) brightness(95%) contrast(95%);
}

.nosotros-logo:hover {
  transform: scale(1.05);
}

.nosotros-tagline {
  margin-top: 1rem;
  color: #19346e;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .nosotros-logo {
    max-width: 200px;
  }
  
  .nosotros-tagline {
    font-size: 0.9rem;
  }
}
/* Imagen personalizada dentro del ícono de servicio */
.servicio-icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Lo hace blanco */
}
