/* =========================================
   TRUSTCLEAN SERVICES – STYLES.CSS FINAL
   NIVEL EMPRESARIAL
========================================= */

/* =========================================
   1. VARIABLES Y RESET
========================================= */
:root {
  --blue-primary: #0056b3;
  --blue-dark: #003366;
  --blue-soft: rgba(0, 86, 179, 0.08);
  --accent: #00aee0;

  --gold: #c7a963;
  --wa-green: #25D366;

  --text-main: #1f2937;
  --text-muted: #6b7280;

  --bg-light: #f6fbff;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-main: 0 25px 55px rgba(0, 51, 102, 0.18);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================
   1.5 OPTIMIZACIÓN DE IMÁGENES GLOBAL
========================================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #f5f5f5 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================
   2. BODY – FONDO LIMPIEZA (BURBUJAS)
========================================= */
body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  min-height: 100vh;

  background:
    radial-gradient(circle at 12% 18%, rgba(0, 174, 239, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(0, 136, 204, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 20% 82%, rgba(0, 86, 179, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 92% 78%, rgba(0, 174, 239, 0.14) 0%, transparent 45%),
    linear-gradient(180deg, #f6fbff 0%, #e9f5ff 100%);

  -webkit-font-smoothing: antialiased;
}

/* =========================================
   3. CONTENEDORES
========================================= */
.container,
.section,
.hero {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* =========================================
   4. HEADER / TOPBAR
========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #0056b3 0%, #0ea5e9 100%);
  border-bottom: 2px solid rgba(0, 174, 239, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.15);
}

/* Social bar */
.social-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 0;
  background: rgba(0,0,0,.18);
}

.social-btn img {
  width: 26px;
  height: 26px;
  background: #fff;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
  display: block;
  object-fit: contain;
}

.social-btn img:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

/* Header inner */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Brand */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.08);
}

.brand-text h1 {
  font-size: 1.1rem;
  color: #fff;
}

.brand-text p {
  font-size: .85rem;
  color: rgba(255,255,255,.85);
}

/* Nav */
.nav {
  display: flex;
  gap: 12px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 500;
}

.nav a:hover {
  background: rgba(255,255,255,.15);
}

/* =========================================
   5. HERO
========================================= */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  padding: 90px 0;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text-main);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* Botones */
.btn {
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #d1d5db;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  color: #fff;
  border: none;
  box-shadow: 0 12px 28px rgba(0, 86, 179, 0.25);
}

.btn.primary:hover {
  box-shadow: 0 16px 40px rgba(0, 86, 179, 0.35);
  transform: translateY(-3px);
}

.btn.ghost {
  background: rgba(0, 86, 179, 0.08);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.btn.ghost:hover {
  background: rgba(0, 86, 179, 0.15);
  border-color: var(--blue-dark);
}

/* Contact bar */
.contact-bar {
  background: #fff;
  padding: 16px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.contact-link {
  color: var(--blue-primary);
  font-weight: 700;
  text-decoration: none;
}

/* Checks */
.highlights {
  list-style: none;
}

.highlights li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* =========================================
   IMAGENES – ORGANIZACIÓN COMPLETA
========================================= */

/* Hero image */
.hero-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}

.hero-media img:hover {
  transform: scale(1.05);
  filter: brightness(0.95);
}

/* =========================================
   6. SECCIONES
========================================= */
.section {
  background: #fff;
  margin: 100px auto;
  padding: 60px 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 51, 102, 0.1);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

/* =========================================
   7. SERVICIOS – TEXTO LIMPIO (SIN CHECK)
========================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.card-service {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 86, 179, 0.1);
  overflow: hidden;
  transition: transform .32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .32s ease, border-color .32s ease;
  border: 2px solid transparent;
  position: relative;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--accent));
  opacity: 0;
  transition: opacity .32s ease;
  z-index: 99;
}

.card-service:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 32px 60px rgba(0, 86, 179, 0.25);
  border-color: var(--accent);
}

.card-service:hover::before {
  opacity: 1;
}

.service-media {
  overflow: hidden;
  height: 200px;
  width: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  position: relative;
}

.card-service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  display: block;
}

.card-service:hover img {
  transform: scale(1.12);
  filter: brightness(1.1);
}

.service-check {
  display: none !important;
}

.service-body {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.service-body h4 {
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.service-body p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================
   8. TABLA HORARIOS
========================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.data-table th {
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.12) 0%, rgba(0, 174, 239, 0.12) 100%);
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.data-table th,
.data-table td {
  padding: 18px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.data-table tbody tr {
  transition: background-color .25s ease;
}

.data-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08) 0%, rgba(0, 174, 239, 0.08) 100%);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* =========================================
   9. MULTIMEDIA
========================================= */
.multimedia {
  max-width: 1100px;
  margin: auto;
}

.media-grid {
  display: grid;
  gap: 24px;
  margin: 35px 0;
  position: relative;
  z-index: 1;
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 35px auto;
  gap: 24px;
}

.media-grid.one-col {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 30px auto 50px;
}

.media-grid-item {
  overflow: hidden;
  border-radius: 16px;
  background: #f0f0f0;
  aspect-ratio: 1/1;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.media-grid-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 86, 179, 0.2);
}

.media-grid.two-cols .media-grid-item {
  aspect-ratio: 4/3;
}

.media-grid.one-col .media-grid-item {
  aspect-ratio: 16/9;
}

.media-caption {
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.media-grid.one-col .media-caption {
  font-size: 1.05rem;
}

.badge-small {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.4px;
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.media-grid img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.45s ease;
  display: block;
}

.media-grid img:hover {
  transform: scale(1.08);
  filter: brightness(0.96) contrast(1.05);
}

/* VIDEO */
.media-video {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  max-width: 820px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  perspective: 1000px;
}

.media-video video {
  width: 100%;
  max-width: 820px;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 51, 102, 0.25);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.media-video:hover video {
  transform: scale(1.02);
  filter: brightness(1.02);
}

/* =========================================
   10. SECCIÓN CONTACTO
========================================= */
.section-dark {
  background: linear-gradient(135deg, #f6fbff 0%, #e9f5ff 100%);
  position: relative;
  padding: 80px 20px;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 86, 179, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 174, 239, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.section-dark .section-title {
  font-size: 2.4rem;
}

/* =========================================
   11. FORMULARIO – EMPRESARIAL
========================================= */
.contact-card {
  background: #fff;
  padding: 48px;
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(0, 51, 102, 0.12);
  position: relative;
  z-index: 2;
  border: 2px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 80px rgba(0, 86, 179, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  font-size: .95rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
  background-color: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.radio-group {
  display: flex;
  gap: 20px;
  padding: 16px 0;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.contact-footer {
  margin-top: 28px;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

/* =========================================
   12. FOOTER
========================================= */
.site-footer {
  background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
  margin-top: 100px;
  border-top: 2px solid rgba(0, 174, 239, 0.3);
}

.footer-inner {
  padding: 40px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: .95rem;
  font-weight: 500;
}

.footer-inner p {
  margin: 8px 0;
}

.footer-inner p i {
  margin-right: 6px;
  color: var(--accent);
}

/* =========================================
   13. RESPONSIVE
========================================= */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .hero-text h2 {
    font-size: 2.2rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }


  .nav {
    display: none;
  }

  .section {
    padding: 40px 28px;
    margin: 60px auto;
  }

  /* Imágenes responsive */
  .hero-media img {
    height: 250px;
  }

  .card-service img {
    height: 160px;
  }
}

.success-body {
  background: #fff;
  padding: 36px;
  border-radius: 26px;
  box-shadow: var(--shadow-main);
}

/* =========================================
   14. RESPONSIVE MOBILE IMAGES
========================================= */
@media (max-width: 768px) {
  .hero-media img {
    height: 220px;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .card-service img {
    height: 140px;
  }


  .media-grid.one-col .media-grid-item {
    aspect-ratio: 4/3;
  }

  .media-video video {
    max-width: 100%;
  }

  .section {
    padding: 28px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .form-row {
    gap: 14px;
  }

  .badge-small {
    font-size: 0.6rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .hero-media img {
    height: 180px;
    border-radius: 16px;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 40px 0;
  }

  .card-service img {
    height: 120px;
  }


  .media-grid-item {
    aspect-ratio: 4/3;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .badge-small {
    font-size: 0.55rem;
    padding: 3px 6px;
    top: 4px;
    left: 4px;
  }

  .contact-card {
    padding: 24px 16px;
  }

  .form-row {
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    padding: 28px 0;
    font-size: 0.85rem;
  }
}

