﻿/* ====== HERO SECTION ====== */
  .hero-section {
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 247, 255, 0.85) 50%, rgba(255, 255, 255, 0.6) 100%);
  }

  .min-vh-75 {
    min-height: 75vh;
  }

  /* Badge */
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
  }

  @keyframes dotPulse {

    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }

    50% {
      opacity: 0.5;
      transform: scale(1.5);
    }
  }

  /* Título */
  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
  }

  .hero-title-highlight {
    color: #0d6efd;
    position: relative;
  }

  /* Subtítulo */
  .hero-subtitle {
    font-size: 1.08rem;
    color: #475569;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2rem;
  }

  .hero-subtitle strong {
    color: #1e293b;
    font-size: 1.12rem;
  }

  /* Botones */
  .hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
  }

  .hero-btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  }

  .hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    color: white;
  }

  .hero-btn-outline {
    background: white;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .hero-btn-outline:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  /* Trust badges */
  .hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
  }

  .hero-trust-item i {
    color: #22c55e;
    font-size: 1.1rem;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .hero-section {
      min-height: 100vh;
      padding: 1rem 0;
    }

    .hero-title {
      font-size: 2rem;
    }

    .hero-subtitle {
      font-size: 0.95rem;
    }

    .hero-buttons {
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    .hero-btn-primary,
    .hero-btn-outline {
      width: 100%;
      max-width: 320px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto;
    }

    .hero-trust {
      flex-direction: column;
      gap: 10px;
    }
  }

/* ------------------------------------------- */
  /*  CLASES BASE PARA EL BOTÍ“N */
  /* ------------------------------------------- */

  /* Aseguramos que el botón tenga una posición relativa y un padding fijo */
  .btn-solo-icono {
    /* Mantenemos tu padding original fijo (esto fija el tamaño del botón) */
    padding: 14px 35px;
    /* Necesario para posicionar elementos internos (si se requiere) */
    position: relative;
    /* Necesario para ocultar contenido que se desborde durante la transición */
    overflow: hidden;
    /* Usamos 'inline-flex' para alinear perfectamente el contenido inicial */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ------------------------------------------- */
  /*  ESTILOS DE LOS ELEMENTOS INTERNOS */
  /* ------------------------------------------- */

  /* Estilo para el ícono (solo visible en hover) */
  .btn-solo-icono .icono-chat-only {
    /* Posición inicial del ícono: detrás del texto */
    position: absolute;
    opacity: 0;
    transform: scale(0.1);
    font-size: 1.5rem;
    /* El ícono es grande */
    /* El mismo color que el texto para que la transición sea suave */
    color: white !important;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  }

  /* Estilo para el texto (visible por defecto) */
  .btn-solo-icono .texto-btn-contac {
    /* El texto debe hacer la transición */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    /* Evitamos que el texto haga wrapping y cambie el tamaño */
    white-space: nowrap;
  }


  /* ------------------------------------------- */
  /*  EFECTO HOVER: CAMBIO DE TEXTO A ÍCONO */
  /* ------------------------------------------- */

  /* Ocultamos el texto al pasar el mouse */
  .btn-solo-icono:hover .texto-btn-contac {
    opacity: 0;
    /* Lo movemos ligeramente para que se desvanezca */
    transform: translateX(20px);
  }

  /* Mostramos el ícono al pasar el mouse */
  .btn-solo-icono:hover .icono-chat-only {
    opacity: 1;
    /* Lo centramos donde estaba el texto */
    transform: scale(1);
  }

.modal-personalizado {
    max-width: 600px;
  }

  .contact-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    /* Esto mantiene las esquinas redondas limpias */
  }

  .contact-modal-header {
    padding: 1.5rem 2.5rem 0.5rem;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .contact-modal-title {
    color: #4A85F6;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
  }

  .contact-btn-close {
    font-size: 0.9rem;
    opacity: 0.4;
  }

  .contact-btn-close:hover {
    opacity: 1;
  }

  .contact-modal-body {
    background-color: #ffffff;
    padding: 1.2rem 2.5rem 0.5rem;
    /* Ajustado el padding para el scroll */
  }

  .contact-modal-footer {
    background-color: #ffffff;
    padding: 1rem 2.5rem 2.5rem;
    border-top: none;
    /* Sin borde para dar aspecto unido al body */
  }

  /* Labels */
  .contact-form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.4rem;
    display: block;
  }

  /* Wrapper para input con ícono */
  .contact-input-wrap {
    position: relative;
  }

  .contact-input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
  }

  /* Ícono específico para el textarea para que no quede centrado verticalmente */
  .contact-input-icon.textarea-icon {
    top: 1.2rem;
    transform: none;
  }

  /* Inputs */
  .contact-form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    /* Espacio extra a la izquierda para el ícono */
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s ease;
    box-shadow: none;
  }

  .contact-form-control::placeholder {
    color: #cbd5e1;
    font-weight: 500;
  }

  .contact-form-control:focus {
    background-color: #ffffff;
    border-color: #4A85F6;
    box-shadow: 0 0 0 4px rgba(74, 133, 246, 0.1);
    outline: none;
  }

  .contact-textarea {
    resize: vertical;
    min-height: 100px;
  }

  /* Checkbox y Footer */
  .contact-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    /* Checkbox redondo como en la imagen */
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    margin-top: 0.15rem;
  }

  .contact-check-input:checked {
    background-color: #4A85F6;
    border-color: #4A85F6;
  }

  .contact-check-label {
    font-size: 0.85rem;
    cursor: pointer;
    padding-left: 0.2rem;
  }

  .contact-link {
    color: #4A85F6;
    text-decoration: underline;
    text-decoration-color: rgba(74, 133, 246, 0.4);
    text-underline-offset: 3px;
    font-weight: 500;
  }

  .contact-link:hover {
    color: #2563eb;
    text-decoration-color: #2563eb;
  }

  /* Botón Submit */
  .contact-btn-submit {
    background-color: #4A85F6;
    color: white;
    border: none;
    border-radius: 8px;
    /* Redondeado, no totalmente pastilla */
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(74, 133, 246, 0.3);
  }

  .contact-btn-submit:hover {
    background-color: #3b76e8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 133, 246, 0.4);
  }

  @media (max-width: 575px) {

    .contact-modal-header,
    .contact-modal-body {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }

/* ====== SECCIÓN "100% FÁCIL" ====== */
  .easy-use-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: linear-gradient(180deg, #f8fcfd 0%, #ffffff 100%);
  }

  .easy-use-title {
    font-weight: 800;
    color: #001f3f;
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .easy-use-title span {
    color: #0d6efd !important;
  }

  .easy-use-text {
    color: #55606e;
    font-size: 1.05rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
  }

  /* Iconos circulares suavizados */
  .feature-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e6f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #0d6efd;
    flex-shrink: 0;
  }

  .feature-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .feature-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Contenedor de la Imagen Derecha */
  .image-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 6px;
    background: white;
    border: 1px solid #e2e8f0;
  }

  .image-wrapper img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    height: auto;
    max-height: 500px;
    /* Previene excesiva altura */
  }

  /* Tarjeta Flotante +20 Años (Diseño Mockup) */
  .floating-experience-card {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
    z-index: 2;
    min-width: 140px;
    text-align: center;
    border-bottom: 3px solid #0d6efd;
    /* Decoración elegante abajo */
  }

  .floating-experience-number {
    font-size: 3rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
    margin-bottom: 0.4rem;
  }

  .floating-experience-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
  }

  @media (max-width: 991px) {
    .easy-use-title {
      font-size: 2.3rem;
    }

    .floating-experience-card {
      left: 10px;
      bottom: -20px;
      padding: 1rem 1.5rem;
    }

    .floating-experience-number {
      font-size: 2.2rem;
    }

    .floating-experience-text {
      font-size: 0.65rem;
    }

    .image-wrapper {
      margin-top: 2rem;
    }
  }

.section-divider {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .divider-line {
    border: none;
    height: 1px;
    margin: 0;
    background: linear-gradient(to var(--dir, right), transparent, rgba(13, 110, 253, 0.2), transparent);
  }

  .divider-text {
    padding: 0 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d6efd;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.3s ease;
  }

.prod-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.35s ease;
  }

  .prod-card:hover {
    border-color: rgba(13, 110, 253, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(13, 110, 253, 0.1);
  }

  .prod-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .prod-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .prod-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
  }

  .prod-link {
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease;
  }

  .prod-link:hover {
    gap: 10px;
    color: #0b5ed7;
  }

/* === Sección de Videos === */
  .video-section-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }

  .video-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
  }

  .video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.18);
  }

  .video-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
  }

  .video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  .video-card:hover .video-thumb {
    transform: scale(1.05);
  }

  .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #0d6efd;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
  }

  .video-card:hover .video-play-btn {
    background: #0d6efd;
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
  }

  .video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
  }

  .video-info {
    padding: 1rem 1.2rem;
  }

  .video-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d6efd;
  }

  .video-title {
    margin-top: 6px;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
  }

  /* Responsive */
  @media (max-width: 576px) {
    .video-play-btn {
      width: 44px;
      height: 44px;
      font-size: 1.2rem;
    }
  }

/* ====== SECCIÓN "BLOG Y NOVEDADES" ====== */
  .blog-section-modern {
    background-color: #f8fbff;
    /* Dotted pattern background */
    background-image: radial-gradient(rgba(13, 110, 253, 0.15) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  /* NOTICIA DESTACADA */
  .featured-news-wrapper {
    background: #eef2f6;
    /* Color de fallback si la imagen no carga */
    border-radius: 20px;
    height: 100%;
    overflow: hidden;
  }

  .featured-img-container {
    height: 60%;
    /* Ajusta cuánto cubre la imagen */
    min-height: 380px;
    background: #f8fbff;
    /* Color más suave en caso de usar contain */
  }

  .featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .featured-content-box {
    background: white;
    border-radius: 16px;
    /* Margin negativo para superponer este contenedor sobre la imagen */
    margin: -80px 24px 24px 24px;
    padding: 2rem;
    position: relative;
    z-index: 2;
  }

  .modern-badge {
    background-color: #0d6efd;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .read-time {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
  }

  .featured-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
  }

  .featured-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: #cce0ff !important;
    color: #003366 !important;
  }

  .author-name {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
  }

  .post-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
  }

  /* NOTICIAS SECUNDARIAS */
  .side-news-card {
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .side-news-link:hover .side-news-card {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06) !important;
  }

  .side-img {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    object-position: center;
  }

  .ghost-badge {
    background-color: #f1f5f9;
    color: #0d6efd;
  }

  .ghost-badge.dark {
    background-color: #64748b;
    color: white;
  }

  .side-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.35;
  }

  .side-meta {
    font-size: 0.8rem;
    font-weight: 500;
  }

  /* Responsive Fixes */
  @media (max-width: 991px) {
    .featured-content-box {
      margin: -40px 15px 15px 15px;
      padding: 1.5rem;
    }

    .featured-title {
      font-size: 1.25rem;
    }

    .side-img {
      min-height: 120px;
    }

    .author-row {
      flex-direction: column;
      align-items: start !important;
      gap: 10px;
    }
  }

/* ====== TESTIMONIOS LIGHT/MODERN ====== */
  .testi-section-light {
    background-color: #f8fbff;
    overflow: hidden;
  }

  .testi-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* ECG subtle pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 L30 20 L35 10 L45 35 L55 5 L65 20 L100 20' stroke='rgba(13, 110, 253, 0.04)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 150px 60px;
    z-index: 0;
    opacity: 0.8;
  }

  .testi-badge-light {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  }

  .testi-highlight {
    color: #003366;
    position: relative;
    display: inline-block;
  }

  .testi-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #0d6efd;
    border-radius: 2px;
  }

  .testi-card-light {
    border-radius: 16px !important;
    transition: all 0.3s ease;
    background: #ffffff;
    z-index: 1;
  }

  .testi-card-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.08) !important;
  }

  .testi-quote-icon {
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    font-size: 4rem;
    color: #f1f5f9;
    z-index: 0;
    line-height: 1;
    opacity: 0.7;
  }

  .testi-stars-light {
    color: #fbbf24;
    font-size: 1rem;
    position: relative;
    z-index: 1;
  }

  .testi-text-light {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
  }

  .testi-divider {
    border-top: 2px solid #f1f5f9;
    opacity: 1;
    margin: 1.5rem 0;
  }

  .testi-avatar-light {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
  }

  .testi-role {
    color: #026FA7;
    font-size: 0.85rem;
    font-weight: 600;
  }
