:root {
  --bg-deep: #f0f5fa;
  --text-primary: #051e3e;
  --text-secondary: #506680;

  --accent-cyan: #00a8cc;
  --accent-blue: #2c62a3;
  --accent-gradient: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);

  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 1);
  --card-shadow: 0 10px 30px rgba(0, 40, 90, 0.08);
  --card-hover-shadow: 0 15px 35px rgba(0, 40, 90, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.material-symbols-outlined {
  vertical-align: middle;
  user-select: none;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.highlight-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-logo {
  height: 70px;
  width: auto;
  display: block;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .hero-logo {
    height: 50px;
    margin-bottom: 30px;
  }
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 0;
  background: radial-gradient(
    circle at 100% 0%,
    rgba(0, 210, 255, 0.05) 0%,
    transparent 50%
  );
}

.bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(0, 180, 219, 0.1) 0%,
    transparent 70%
  );
  top: -30%;
  right: -20%;
  z-index: -1;
  animation: pulse 8s infinite ease-in-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.btn-main {
  background: var(--accent-gradient);
  color: #fff;
  padding: 16px 40px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(0, 180, 219, 0.4);
}

.btn-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 180, 219, 0.6);
}

.btn-main .material-symbols-outlined {
  font-size: 1.2rem;
}

.hero-visual-wrapper {
  position: relative;
  height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-center-placeholder {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(0, 168, 204, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  position: absolute;
  z-index: 0;
  animation: pulse 4s infinite ease-in-out;
}

.hero-floater {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(230, 240, 255, 1);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--card-shadow);
  z-index: 2;
  transition: 0.3s;
  animation: float 6s infinite ease-in-out;
  max-width: 260px;
}

.hero-floater:hover {
  transform: scale(1.05);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--accent-cyan);
  cursor: pointer;
}

.h-icon-box {
  width: 42px;
  height: 42px;
  background: rgba(0, 180, 219, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-blue);
}

.h-icon-box .material-symbols-outlined {
  font-size: 1.5rem;
}

.h-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.hp-1 {
  top: 10%;
  left: 0%;
  animation-delay: 0s;
}

.hp-2 {
  top: 5%;
  right: 0%;
  animation-delay: 1.5s;
}

.hp-3 {
  top: 45%;
  left: -5%;
  animation-delay: 0.5s;
}

.hp-4 {
  top: 40%;
  right: -5%;
  animation-delay: 2s;
  transform: scale(0.95);
}

.hp-5 {
  bottom: 15%;
  left: 20%;
  animation-delay: 1s;
  width: auto;
  min-width: 200px;
}

/* ==========================================================
   SECCIÓN ASÍ LO HACEMOS (Proceso)
   ========================================================== */

.process-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f0f5fa 0%, #ffffff 50%, #f0f5fa 100%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 168, 204, 0.2),
    rgba(0, 168, 204, 0.2) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 0;
}

.process-card {
  background: #ffffff;
  border: 1px solid rgba(220, 230, 245, 1);
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: 0.3s;
  box-shadow: var(--card-shadow);
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--card-hover-shadow);
}

.process-image-wrapper {
  width: 100%;
  max-width: 300px; 
  margin: 0 auto 20px auto; 
  border-radius: 12px;
  overflow: hidden;
}

.process-image-wrapper img {
  width: 100%;
  height: auto; 
  display: block;
  object-fit: cover;
}

.process-icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 30px auto;
  background: #f8fbff;
  border: 2px solid rgba(220, 230, 245, 1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  color: var(--accent-cyan);
}

.process-icon-wrapper .material-symbols-outlined {
  font-size: 2.5rem;
}

.process-card:hover .process-icon-wrapper {
  border-color: var(--accent-cyan);
  background: rgba(0, 168, 204, 0.05);
}

.process-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-weight: 700;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================
   SECCIÓN SERVICIOS
   ========================================================== */

.services-section {
  padding: 100px 0;
  position: relative;
}

.bg-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 168, 204, 0.08) 0%,
    transparent 70%
  );
  bottom: 0;
  left: -10%;
  z-index: -1;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 700;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  min-height: 280px; 
  padding: 0 !important; 
  border-radius: 16px; 
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.contenido-servicio {
  background: rgba(18, 18, 18, 0.65); 
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s ease;
}

.service-card:hover .contenido-servicio {
  background: rgba(18, 18, 18, 0.8); 
}

.contenido-servicio h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.contenido-servicio .service-link {
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s;
  text-decoration: none;
}

.service-card:hover .service-link {
  gap: 12px; 
}

.fondo-asistencias {
  background-image: url('img/medicina-assisprex.webp');
}

.fondo-ventas {
  background-image: url('img/Ventas.webp');
}

.fondo-innovacion {
  background-image: url('img/Innovacion-y-Tecnologia.webp');
}

.fondo-backoffice {
  background-image: url('img/BackOffice-Especializado.webp');
}

.fondo-fabrica {
  background-image: url('img/Siniestros.webp');
}

.fondo-servicio-cliente {
  background-image: url('img/Servicio-al-cliente.webp');
}

/* ==========================================================
   OTRAS SECCIONES
   ========================================================== */

.diff-section {
  padding: 80px 0;
  background: #ffffff;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.diff-card {
  background: #f8fbff;
  border: 1px solid rgba(220, 230, 245, 1);
  padding: 30px 25px;
  border-radius: 16px;
  transition: 0.3s;
}

.diff-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  background: #fff;
  box-shadow: var(--card-hover-shadow);
}

.diff-icon {
  margin-bottom: 20px;
  color: var(--accent-blue);
}

.diff-icon .material-symbols-outlined {
  font-size: 2.5rem;
}

.diff-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
  font-weight: 700;
}

.check-list {
  list-style: none;
  text-align: left;
}

.check-list li {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "\e5ca";
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.1rem;
  line-height: 1;
}

.indicators-section {
  padding: 100px 0;
  background-color: #ffffff; 
  background-image: url('img/Fondo-contadores.webp'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.indicators-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.indicator-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(0, 180, 219, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: 0.3s;
  position: relative;
}

.indicator-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 180, 219, 0.2);
  border-color: var(--accent-cyan);
}

.ind-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: -1px;
}

.ind-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-weight: 600;
}

/* ==========================================================
   SECCIÓN CASOS DE ÉXITO
   ========================================================== */
.success-section {
  padding: 100px 0;
  background: #f8fbff;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.success-card {
  background: #ffffff;
  border: 1px solid rgba(220, 230, 245, 1);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--accent-cyan);
}

.success-logo-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-logo-wrapper img {
  max-width: 95%; /* Ajustado para que los logos rectangulares sean más grandes */
  max-height: 100px; /* Incrementado para darles más presencia */
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.success-card:hover .success-logo-wrapper img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.success-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.success-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================
   PREGUNTAS FRECUENTES
   ========================================================== */

.faq-section {
  padding: 100px 0;
  position: relative;
  background: #f0f5fa;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

.faq-visual {
  background: #ffffff;
  border: 1px solid rgba(220, 230, 245, 1);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  position: sticky;
  top: 100px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.chat-icon-glow {
  margin-bottom: 20px;
  animation: float 4s infinite ease-in-out;
  text-shadow: 0 10px 20px rgba(0, 180, 219, 0.2);
  color: var(--accent-cyan);
}

.chat-icon-glow .material-symbols-outlined {
  font-size: 4.5rem;
}

.faq-tag {
  background: rgba(0, 180, 219, 0.1);
  color: var(--accent-blue);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0, 180, 219, 0.2);
  font-size: 0.8rem;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

details {
  background: #ffffff;
  border: 1px solid rgba(220, 230, 245, 1);
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

details:hover {
  border-color: var(--accent-cyan);
  transform: translateX(5px);
}

details[open] {
  background: #ffffff;
  border-color: var(--accent-cyan);
  box-shadow: 0 5px 15px rgba(0, 180, 219, 0.1);
}

summary {
  padding: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "\e145";
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-blue);
}

.faq-answer {
  padding: 0 25px 25px 25px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0;
  animation: fadeIn 0.5s ease;
}

/* ==========================================================
   ACERCA DE (About)
   ========================================================== */

.about-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 700;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-weight: 400;
  display: block;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 20px;
}

.cert-container {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-blue-glow {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0, 180, 219, 0.3);
  transition: 0.3s;
}

.btn-blue-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 180, 219, 0.5);
}

.about-visual-wrapper {
  position: relative;
  height: 500px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 180, 219, 0.4), transparent);
  border-radius: 50%;
  position: absolute;
  filter: blur(20px);
  opacity: 0.6;
  animation: pulse 3s infinite;
}

.about-floater {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(230, 240, 255, 1);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
  z-index: 2;
  transition: 0.3s;
  animation: float 6s infinite ease-in-out;
  max-width: 240px;
}

.about-floater:hover {
  transform: scale(1.05);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--accent-cyan);
  cursor: pointer;
}

.ap-1 {
  top: 10%;
  left: 0%;
  animation-delay: 0s;
}

.ap-2 {
  top: 5%;
  right: 0%;
  animation-delay: 1.5s;
}

.ap-3 {
  top: 45%;
  left: -5%;
  animation-delay: 0.5s;
}

.ap-4 {
  top: 40%;
  right: -5%;
  animation-delay: 2s;
}

.ap-5 {
  bottom: 15%;
  left: 20%;
  animation-delay: 1s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   MEDIA QUERIES
   ========================================================== */

@media (max-width: 1115px) {
  .hero-grid,
  .about-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .diff-card {
    padding: 20px 15px;
  }

  .hero-visual-wrapper {
    height: auto;
    flex-wrap: wrap;
    gap: 15px;
    padding: 40px 0;
    justify-content: center;
  }

  .hero-center-placeholder {
    display: none;
  }

  .hero-floater {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: none;
    width: auto;
    max-width: none;
    justify-content: flex-start;
    display: inline-flex;
    margin: 5px;
  }

  .about-visual {
    display: block !important;
    height: auto !important;
    margin-top: 40px;
  }

  .about-visual-wrapper {
    height: auto;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    justify-content: center;
  }

  .core {
    display: none;
  }

  .about-floater {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: none;
    width: auto;
    max-width: none;
    justify-content: flex-start;
    margin-bottom: 0;
    display: inline-flex;
    margin: 5px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-grid::before {
    display: none;
  }
  .about-desc {
    border-left: none;
    border-top: 3px solid var(--accent-cyan);
    padding-top: 20px;
    padding-left: 0;
  }
  .cert-container {
    justify-content: center;
  }
  .faq-visual {
    display: none;
  }
}

@media (max-width: 622px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
  }

  .about-text h2 {
    font-size: 2.2rem;
  }

  .hero-floater,
  .about-floater {
    width: 100%;
  }
}

/* Estilos para el nuevo banner principal */
.hero-banner-img {
  max-width: 650px;
  height: auto;
  border-radius: 20px;
}

/* Ajuste responsivo para el banner */
@media (max-width: 1115px) {
  .hero-banner-img {
    animation: none;
    max-width: 90%;
  }
}

/* Estilos para la imagen de Somos AssisPrex */
.about-banner-img {
  max-width: 650px;
  height: auto;
  border-radius: 20px;
}

/* Ajuste responsivo para la imagen de Nosotros */
@media (max-width: 1115px) {
  .about-banner-img {
    animation: none;
    max-width: 90%;
  }
}

/* Estilos para las imágenes de certificaciones ISO */
.cert-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.05));
}

.cert-img:hover {
  transform: scale(1.08);
  cursor: pointer;
}