/*
 * GRUPO ELCA - Presentación Corporativa
 * Standalone CSS File
 * Estilos extraídos de corporate-presentation.blade.php
 */

/* ========================================================================
   ROOT VARIABLES
   ======================================================================== */
:root {
    --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --heading-font: "Roboto", sans-serif;
    --nav-font: "Work Sans", sans-serif;
    --default-color: #444444;
    --heading-color: #344d59;
    --accent-color: #e43f3f;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --color-primary: #e43f3f;
    --background-color: #ffffff;
}

/* ========================================================================
   HEADER STANDALONE STYLES
   ======================================================================== */
body {
    padding-top: 80px;
}

.standalone-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(228, 63, 63, 0.1);
}

.standalone-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 6px 40px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.98);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-standalone {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo-standalone img {
    height: 55px;
    transition: all 0.4s ease;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(228, 63, 63, 0.3);
}

/* Back to Home Button */
.back-to-home {
    position: fixed;
    bottom: 90px;
    right: 35px;
    z-index: 996;
    background: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(228, 63, 63, 0.4);
    text-decoration: none;
}

.back-to-home:hover {
    background: #c53535;
    transform: scale(1.1);
    color: white;
}

/* Footer */
.standalone-footer {
    background: var(--heading-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.standalone-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.standalone-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================================================
   ESTILOS DEL BLADE TEMPLATE
   ======================================================================== */

/* Estilos de corporate-presentation.blade.php */
    /* ====== Hero Corporativo ====== */
    .corporate-hero {
      padding: 60px 0;
    }

    .corporate-hero h3 {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .corporate-hero h2 {
      font-size: 1.8rem;
      color: var(--heading-color);
      margin-bottom: 20px;
    }

    .corporate-badges {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-top: 30px;
    }

    .badge-corp {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 15px 20px;
      background: #f8f9fa;
      border-radius: 8px;
      border-left: 4px solid var(--color-primary);
      transition: all 0.3s ease;
    }

    .badge-corp:hover {
      transform: translateX(10px);
      background: #fff;
      box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .badge-corp i {
      font-size: 1.5rem;
      color: var(--color-primary);
    }

    .badge-corp span {
      font-weight: 600;
      color: var(--heading-color);
    }

    /* Bandera con Overlay */
    .flag-container {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .flag-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(228, 63, 63, 0.9) 0%, rgba(52, 77, 89, 0.9) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .flag-container:hover .flag-overlay {
      opacity: 1;
    }

    .flag-text {
      text-align: center;
      color: white;
    }

    .flag-text i {
      font-size: 3rem;
      margin-bottom: 15px;
    }

    .flag-text h4 {
      color: white;
      font-size: 1.8rem;
      margin-bottom: 10px;
    }

    .flag-text p {
      font-size: 1.1rem;
      letter-spacing: 2px;
    }

    /* ====== Socios Estratégicos (Partner Cards) ====== */
    .strategic-partners {
      padding: 80px 0;
    }

    .partner-card {
      height: 100%;
      perspective: 1000px;
    }

    .partner-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 680px;
      transition: transform 0.6s;
      transform-style: preserve-3d;
    }

    .partner-card-inner.flipped {
      transform: rotateY(180deg);
    }

    .partner-card-front,
    .partner-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      padding: 35px 30px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    }

    .partner-card-front {
      background: white;
      border: 2px solid #e9ecef;
    }

    .partner-card-back {
      background: linear-gradient(135deg, #364d59 0%, #2a3a44 100%);
      color: white;
      transform: rotateY(180deg);
      justify-content: flex-start;
    }

    .partner-logo-wrapper {
      text-align: center;
      margin-bottom: 25px;
    }

    .partner-logo {
      width: 170px;
      height: 170px;
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 25px rgba(228, 63, 63, 0.3);
      margin: 0 auto;
    }

    .partner-logo i {
      font-size: 3.5rem;
      color: white;
    }

    .partner-logo-image {
      background: #f8f9fa;
      padding: 15px;
      overflow: hidden;
      border: 4px solid #e9ecef;
    }

    .partner-logo-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 0;
    }

    .partner-name {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--heading-color);
      margin-bottom: 8px;
      text-align: center;
    }

    .partner-tagline {
      font-size: 0.95rem;
      color: #6c757d;
      margin-bottom: 25px;
      text-align: center;
      font-weight: 500;
    }

    .partner-services-categorized {
      flex-grow: 1;
      margin-bottom: 20px;
      padding: 0 15px;
      max-height: 400px;
      overflow-y: auto;
    }

    .partner-services-categorized::-webkit-scrollbar {
      width: 6px;
    }

    .partner-services-categorized::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
    }

    .partner-services-categorized::-webkit-scrollbar-thumb {
      background: var(--color-primary);
      border-radius: 10px;
    }

    .service-category {
      margin-bottom: 20px;
      background: #f8f9fa;
      border-radius: 10px;
      padding: 15px;
      border-left: 4px solid var(--color-primary);
      transition: all 0.3s ease;
    }

    .service-category:hover {
      background: #fff;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
      transform: translateX(5px);
    }

    .service-category:last-child {
      margin-bottom: 0;
    }

    .category-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
      padding-bottom: 8px;
      border-bottom: 2px solid #e9ecef;
    }

    .category-title i {
      font-size: 1.1rem;
    }

    .category-services {
      list-style: none;
      padding: 0;
      margin: 0;
      padding-left: 20px;
    }

    .category-services li {
      font-size: 0.9rem;
      color: var(--default-color);
      padding: 6px 0;
      position: relative;
    }

    .category-services li:before {
      content: "•";
      color: var(--color-primary);
      font-weight: bold;
      position: absolute;
      left: -15px;
    }

    .partner-actions-buttons {
      display: flex;
      gap: 10px;
      margin-top: auto;
    }

    .btn-partner-action {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      border: 2px solid var(--color-primary);
      background: white;
      color: var(--color-primary);
      border-radius: 50px;
      font-weight: 700;
      font-size: 0.9rem;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .btn-partner-action:hover {
      background: var(--color-primary);
      color: white;
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(228, 63, 63, 0.3);
    }

    .btn-partner-action i {
      font-size: 1.1rem;
    }

    .contact-icon {
      width: 80px;
      height: 80px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .contact-icon i {
      font-size: 2.5rem;
      color: white;
    }

    .partner-card-back h3 {
      font-size: 1.5rem;
      font-weight: 700;
      color: white;
      margin-bottom: 25px;
      text-align: center;
    }

    .contact-info {
      flex-grow: 1;
      width: 100%;
    }

    .contact-item {
      display: flex;
      gap: 15px;
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .contact-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .contact-item i {
      font-size: 1.5rem;
      color: var(--color-primary);
      flex-shrink: 0;
    }

    .contact-item strong {
      display: block;
      font-size: 1rem;
      margin-bottom: 5px;
      color: white;
    }

    .contact-item p {
      margin: 0;
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.9);
      line-height: 1.5;
    }

    .contact-item a {
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .contact-item a:hover {
      color: var(--color-primary);
    }

    .btn-back {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 30px;
      background: rgba(255, 255, 255, 0.2);
      color: white;
      border: 2px solid white;
      border-radius: 50px;
      font-weight: 700;
      font-size: 0.95rem;
      margin-top: auto;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-back:hover {
      background: white;
      color: var(--heading-color);
    }

    .btn-back i {
      font-size: 1.2rem;
    }

    /* ====== Flip Cards ====== */
    .services-flip {
      padding: 80px 0;
    }

    .services-carousel-wrapper {
      margin-top: 50px;
    }

    .flip-card-container {
      perspective: 1000px;
      height: 420px;
      cursor: pointer;
    }

    .flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      transition: transform 0.6s;
      transform-style: preserve-3d;
    }

    .flip-card-container:hover .flip-card-inner,
    .flip-card-container.flipped .flip-card-inner {
      transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 30px;
      box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    }

    .flip-card-front {
      background: #fff;
      border: 2px solid #f1f1f1;
    }

    .flip-card-back {
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      color: white;
      transform: rotateY(180deg);
    }

    .service-icon {
      width: 100px;
      height: 100px;
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 25px;
      box-shadow: 0 5px 15px rgba(228, 63, 63, 0.3);
    }

    .service-icon img {
      width: 55px;
      height: 55px;
      filter: brightness(0) invert(1);
    }

    .service-icon i {
      font-size: 3rem;
      color: white;
    }

    .flip-card-front h3 {
      font-size: 1.8rem;
      color: var(--heading-color);
      margin-bottom: 10px;
    }

    .service-subtitle {
      color: var(--default-color);
      font-size: 1.1rem;
      margin-bottom: 30px;
    }

    .flip-hint {
      margin-top: auto;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--color-primary);
      font-size: 0.9rem;
      font-weight: 600;
    }

    .flip-hint i {
      animation: rotate-icon 2s infinite linear;
    }

    @keyframes rotate-icon {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .flip-card-back h3 {
      font-size: 1.6rem;
      margin-bottom: 25px;
    }

    .service-features {
      list-style: none;
      padding: 0;
      margin: 0 0 25px 0;
      width: 100%;
    }

    .service-features li {
      padding: 10px 0;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .service-features li:last-child {
      border-bottom: none;
    }

    .service-features i {
      font-size: 1.1rem;
    }

    .flip-card-back .readmore {
      color: white;
      background: rgba(255,255,255,0.2);
      padding: 10px 25px;
      border-radius: 50px;
      border: 2px solid white;
      font-weight: 600;
      transition: all 0.3s;
      margin-top: auto;
    }

    .flip-card-back .readmore:hover {
      background: white;
      color: var(--color-primary);
    }

    /* Swiper Customization */
    .services-flip .init-swiper {
      padding: 20px 60px 60px;
    }

    .services-flip .swiper-button-prev,
    .services-flip .swiper-button-next {
      color: var(--color-primary);
      background: white;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    }

    .services-flip .swiper-button-prev:after,
    .services-flip .swiper-button-next:after {
      font-size: 20px;
    }

    .services-flip .swiper-pagination-bullet {
      background: var(--color-primary);
    }

    .services-flip .swiper-pagination-bullet-active {
      width: 25px;
      border-radius: 5px;
    }

    /* ====== Responsive Design ====== */

    /* Large Tablets and Small Desktops (992px - 1199px) */
    @media (max-width: 1199px) {
      .corporate-hero h3 {
        font-size: 1.8rem;
      }

      .corporate-hero h2 {
        font-size: 1.6rem;
      }

      .corporate-hero p {
        font-size: 1rem;
      }
    }

    /* Tablets (768px - 991px) */
    @media (max-width: 991px) {
      .corporate-hero {
        padding: 40px 0;
      }

      .corporate-hero h3 {
        font-size: 1.6rem;
      }

      .corporate-hero h2 {
        font-size: 1.4rem;
      }

      .corporate-badges {
        margin-top: 20px;
      }

      .badge-corp {
        padding: 12px 16px;
      }

      .badge-corp i {
        font-size: 1.3rem;
      }

      .flag-container {
        margin-top: 30px;
      }

      .flag-text h4 {
        font-size: 1.5rem;
      }

      .flag-text i {
        font-size: 2.5rem;
      }

      /* Stats Section */
      #stats-counter .stats-item {
        padding: 20px 15px;
      }

      #stats-counter .stats-item i {
        font-size: 2.5rem;
      }

      #stats-counter .stats-item span {
        font-size: 2.5rem;
      }

      /* Services Section */
      .services-flip {
        padding: 60px 0;
      }

      .flip-card-container {
        height: 400px;
      }

      .services-flip .init-swiper {
        padding: 20px 40px 60px;
      }

      /* Alt Services (Value Proposition) */
      #alt-services h3 {
        font-size: 1.8rem;
      }

      #alt-services .icon-box h4 {
        font-size: 1.1rem;
      }

      #alt-services .icon-box p {
        font-size: 0.95rem;
      }

      /* CTA Section */
      #call-to-action h3 {
        font-size: 2rem;
      }

      #call-to-action p {
        font-size: 1rem;
      }
    }

    /* Mobile Large (576px - 767px) */
    @media (max-width: 767px) {
      .corporate-hero {
        padding: 30px 0;
      }

      .corporate-hero h3 {
        font-size: 1.5rem;
        text-align: center;
      }

      .corporate-hero h2 {
        font-size: 1.3rem;
        text-align: center;
      }

      .corporate-hero p {
        font-size: 0.95rem;
        text-align: center;
      }

      .corporate-badges {
        margin-top: 25px;
      }

      .badge-corp {
        padding: 12px 15px;
      }

      .badge-corp span {
        font-size: 0.95rem;
      }

      .flag-text h4 {
        font-size: 1.3rem;
      }

      .flag-text p {
        font-size: 1rem;
      }

      /* Stats Section */
      #stats-counter {
        padding: 40px 0;
      }

      #stats-counter .col-lg-3 {
        margin-bottom: 20px;
      }

      #stats-counter .stats-item {
        padding: 25px 15px;
      }

      /* Services Section */
      .services-flip {
        padding: 50px 0;
      }

      .services-flip .section-header h2 {
        font-size: 1.8rem;
      }

      .services-flip .section-header p {
        font-size: 0.95rem;
      }

      .flip-card-container {
        height: 420px;
      }

      .services-flip .init-swiper {
        padding: 20px 20px 60px;
      }

      .flip-card-front h3 {
        font-size: 1.6rem;
      }

      .service-subtitle {
        font-size: 1rem;
      }

      /* Strategic Partners */
      #strategic-partners {
        padding: 50px 0;
      }

      #strategic-partners .section-header h2 {
        font-size: 1.8rem;
      }

      #strategic-partners .section-header p {
        font-size: 0.95rem;
      }

      /* Alt Services */
      #alt-services {
        padding: 50px 0;
      }

      #alt-services h3 {
        font-size: 1.6rem;
        margin-top: 30px;
      }

      #alt-services img {
        margin-bottom: 30px;
      }

      #alt-services .icon-box {
        margin-bottom: 20px;
      }

      /* CTA Section */
      #call-to-action {
        padding: 60px 0;
      }

      #call-to-action h3 {
        font-size: 1.8rem;
      }

      #call-to-action p {
        font-size: 0.95rem;
        margin-bottom: 30px;
      }

      #call-to-action .cta-btn {
        padding: 12px 35px;
        font-size: 0.95rem;
      }
    }

    /* Mobile Small (320px - 575px) */
    @media (max-width: 575px) {
      .corporate-hero {
        padding: 25px 0;
      }

      .corporate-hero h3 {
        font-size: 1.4rem;
      }

      .corporate-hero h2 {
        font-size: 1.2rem;
      }

      .corporate-hero p {
        font-size: 0.9rem;
      }

      .badge-corp {
        padding: 10px 12px;
      }

      .badge-corp i {
        font-size: 1.2rem;
      }

      .badge-corp span {
        font-size: 0.9rem;
      }

      .flag-text h4 {
        font-size: 1.2rem;
      }

      .flag-text i {
        font-size: 2rem;
      }

      .flag-text p {
        font-size: 0.9rem;
        letter-spacing: 1px;
      }

      /* Stats Section */
      #stats-counter {
        padding: 30px 0;
      }

      #stats-counter .stats-item {
        padding: 20px 10px;
      }

      #stats-counter .stats-item i {
        font-size: 2rem;
      }

      #stats-counter .stats-item span {
        font-size: 2rem;
      }

      #stats-counter .stats-item p {
        font-size: 0.9rem;
      }

      /* Services Section */
      .services-flip {
        padding: 40px 0;
      }

      .services-flip .section-header h2 {
        font-size: 1.6rem;
      }

      .services-flip .section-header p {
        font-size: 0.9rem;
        padding: 0 10px;
      }

      .flip-card-container {
        height: 400px;
      }

      .service-icon {
        width: 80px;
        height: 80px;
      }

      .service-icon img {
        width: 45px;
        height: 45px;
      }

      .service-icon i {
        font-size: 2.5rem;
      }

      .flip-card-front h3 {
        font-size: 1.5rem;
      }

      .service-subtitle {
        font-size: 0.95rem;
      }

      .flip-hint {
        font-size: 0.85rem;
      }

      .flip-card-back h3 {
        font-size: 1.4rem;
      }

      .service-features li {
        font-size: 0.9rem;
        padding: 8px 0;
      }

      .flip-card-back .readmore {
        padding: 8px 20px;
        font-size: 0.9rem;
      }

      .services-flip .swiper-button-prev,
      .services-flip .swiper-button-next {
        width: 40px;
        height: 40px;
      }

      .services-flip .swiper-button-prev:after,
      .services-flip .swiper-button-next:after {
        font-size: 16px;
      }

      /* Strategic Partners */
      #strategic-partners {
        padding: 40px 0;
      }

      #strategic-partners .section-header h2 {
        font-size: 1.6rem;
      }

      #strategic-partners .section-header p {
        font-size: 0.9rem;
        padding: 0 10px;
      }

      /* Alt Services */
      #alt-services {
        padding: 40px 0;
      }

      #alt-services h3 {
        font-size: 1.4rem;
        margin-top: 20px;
      }

      #alt-services p {
        font-size: 0.9rem;
      }

      #alt-services .icon-box {
        padding: 15px 10px;
      }

      #alt-services .icon-box h4 {
        font-size: 1rem;
      }

      #alt-services .icon-box p {
        font-size: 0.85rem;
      }

      #alt-services .icon-box i {
        font-size: 2rem;
      }

      /* CTA Section */
      #call-to-action {
        padding: 50px 0;
      }

      #call-to-action h3 {
        font-size: 1.6rem;
      }

      #call-to-action p {
        font-size: 0.9rem;
        padding: 0 10px;
      }

      #call-to-action .cta-btn {
        padding: 10px 30px;
        font-size: 0.9rem;
      }
    }

    /* Extra Small Mobile (320px and below) */
    @media (max-width: 374px) {
      .corporate-hero h3 {
        font-size: 1.3rem;
      }

      .corporate-hero h2 {
        font-size: 1.1rem;
      }

      .badge-corp {
        flex-direction: column;
        text-align: center;
        gap: 8px;
      }

      .flip-card-container {
        height: 380px;
      }

      .services-flip .section-header h2 {
        font-size: 1.4rem;
      }

      #strategic-partners .section-header h2 {
        font-size: 1.4rem;
      }

      #call-to-action h3 {
        font-size: 1.4rem;
      }
    }

    /* Mobile: Click to flip */
    @media (hover: none) {
      .flip-card-container:hover .flip-card-inner {
        transform: none;
      }
    }

    /* Modal Header */
    .modal-header {
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      color: white;
      border-bottom: none;
      padding: 1.5rem;
    }

    .modal-partner-icon {
      width: 60px;
      height: 60px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
    }

    .modal-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 0;
      color: white;
    }

    .modal-subtitle {
      font-size: 0.9rem;
      opacity: 0.9;
      color: white;
    }

    .btn-close {
      filter: invert(1);
      opacity: 0.8;
    }

    .btn-close:hover {
      opacity: 1;
    }

    /* Tabs Navigation */
    .nav-tabs-services {
      border-bottom: 2px solid #dee2e6;
      margin-bottom: 25px;
    }

    .nav-tabs-services .nav-link {
      border: none;
      color: var(--heading-color);
      font-weight: 600;
      padding: 12px 24px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      background: transparent;
      border-radius: 8px 8px 0 0;
      margin-bottom: -2px;
    }

    .nav-tabs-services .nav-link:hover {
      color: var(--color-primary);
      background: rgba(228, 63, 63, 0.05);
    }

    .nav-tabs-services .nav-link.active {
      color: var(--color-primary);
      border-bottom: 3px solid var(--color-primary);
      background: transparent;
    }

    .nav-tabs-services .nav-link i {
      font-size: 1.1rem;
    }

    /* Service List */
    .service-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .service-list li {
      padding: 10px 0;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      border-bottom: 1px solid #f0f0f0;
    }

    .service-list li:last-child {
      border-bottom: none;
    }

    .service-list i {
      color: var(--color-primary);
      font-size: 1rem;
      margin-top: 3px;
      flex-shrink: 0;
    }

    /* Service Cards (diseño con tarjetas) */
    .service-card {
      background: #fff;
      border: 2px solid #e9ecef;
      border-radius: 16px;
      padding: 30px;
      height: 100%;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .service-card:hover {
      border-color: var(--color-primary);
      box-shadow: 0 8px 25px rgba(228, 63, 63, 0.15);
      transform: translateY(-5px);
    }

    .service-card-icon {
      width: 70px;
      height: 70px;
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100());
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 2rem;
      margin-bottom: 20px;
      box-shadow: 0 4px 15px rgba(228, 63, 63, 0.3);
    }

    .service-card-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--heading-color);
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 2px solid #e9ecef;
    }

    .service-card-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .service-card-list li {
      padding: 10px 0;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 0.95rem;
      line-height: 1.6;
      color: var(--default-color);
    }

    .service-card-list li i {
      color: var(--color-primary);
      font-size: 1rem;
      margin-top: 4px;
      flex-shrink: 0;
    }

    /* Service Cards Compact (diseño compacto horizontal) */
    .service-card-compact {
      background: #fff;
      border: 2px solid #e9ecef;
      border-radius: 12px;
      padding: 20px;
      transition: all 0.3s ease;
      height: 100%;
    }

    .service-card-compact:hover {
      border-color: var(--color-primary);
      box-shadow: 0 5px 20px rgba(228, 63, 63, 0.12);
      transform: translateX(5px);
    }

    .service-icon-compact {
      width: 60px;
      height: 60px;
      min-width: 60px;
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.8rem;
      box-shadow: 0 3px 12px rgba(228, 63, 63, 0.25);
    }

    .service-title-compact {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--heading-color);
      margin-bottom: 4px;
    }

    .service-subtitle-compact {
      font-size: 0.85rem;
      color: var(--color-primary);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .service-list-compact {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .service-list-compact li {
      padding: 6px 0;
      padding-left: 20px;
      font-size: 0.9rem;
      line-height: 1.5;
      color: var(--default-color);
      position: relative;
    }

    .service-list-compact li:before {
      content: "●";
      color: var(--color-primary);
      position: absolute;
      left: 0;
      font-size: 0.8rem;
    }

    /* Service Section (para modales sin acordiones) */
    .service-section {
      margin-bottom: 30px;
      padding-bottom: 30px;
      border-bottom: 2px solid #e9ecef;
    }

    .service-section:last-child {
      border-bottom: none;
    }

    .service-section-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--color-primary);
    }

    .service-section-title i {
      font-size: 1.5rem;
    }

    /* Service Detail Box */
    .service-detail-box {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 30px;
      text-align: center;
    }

    .service-icon-large {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      color: white;
      font-size: 2.5rem;
    }

    .service-detail-box h4 {
      color: var(--heading-color);
      font-weight: 700;
      margin-bottom: 15px;
    }

    .service-detail-box .service-list {
      text-align: left;
      max-width: 800px;
      margin: 0 auto;
    }

    /* Modal Footer */
    .modal-footer {
      border-top: 1px solid #dee2e6;
      padding: 1rem 1.5rem;
    }

    .modal-footer .btn-primary {
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      border: none;
      padding: 10px 25px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .modal-footer .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 20px rgba(228, 63, 63, 0.4);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .modal-lg, .modal-xl {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
      }

      .modal-partner-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
      }

      .modal-title {
        font-size: 1.2rem;
      }

      .service-section-title {
        font-size: 1.1rem;
      }

      .service-list li {
        font-size: 0.9rem;
      }

      .service-card {
        padding: 20px;
      }

      .service-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 15px;
      }

      .service-card-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
      }

      .service-card-list li {
        font-size: 0.9rem;
        padding: 8px 0;
      }

      .nav-tabs-services .nav-link {
        font-size: 0.85rem;
        padding: 10px 16px;
      }

      .nav-tabs-services .nav-link span {
        display: none;
      }

      .nav-tabs-services .nav-link i {
        font-size: 1rem;
      }
    }


    /* ====================================
       NUEVAS SECCIONES CORPORATIVAS
    ==================================== */

    /* ===== Cifras Clave Section ===== */
    .key-numbers {
      padding: 80px 0;
      background: #fff;
    }

    .key-number-card {
      background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
      border: 2px solid #e9ecef;
      border-radius: 16px;
      padding: 35px 25px;
      text-align: center;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    .key-number-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(228, 63, 63, 0.03), transparent);
      transition: left 0.6s ease;
    }

    .key-number-card:hover::before {
      left: 100%;
    }

    .key-number-card:hover {
      border-color: var(--color-primary);
      box-shadow: 0 12px 35px rgba(228, 63, 63, 0.15);
      transform: translateY(-8px);
    }

    .number-icon {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      box-shadow: 0 8px 25px rgba(228, 63, 63, 0.3);
      transition: all 0.3s ease;
    }

    .key-number-card:hover .number-icon {
      transform: scale(1.1) rotate(5deg);
      box-shadow: 0 12px 35px rgba(228, 63, 63, 0.4);
    }

    .number-icon i {
      font-size: 2.2rem;
      color: white;
    }

    .number-content {
      width: 100%;
    }

    .number-value {
      font-size: 3rem;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: 10px;
      line-height: 1;
      font-family: 'Roboto', sans-serif;
    }

    .number-label {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--heading-color);
      margin-bottom: 8px;
      line-height: 1.3;
    }

    .number-description {
      font-size: 0.9rem;
      color: #6c757d;
      font-weight: 500;
    }

    /* ===== Certificaciones Section ===== */
    .certifications {
      padding: 80px 0;
    }

    .certification-card {
      background: white;
      border: 2px solid #e9ecef;
      border-radius: 16px;
      padding: 35px 25px;
      text-align: center;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      height: 100%;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
    }

    .certification-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--color-primary) 0%, #c53535 100%);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s ease;
    }

    .certification-card:hover::after {
      transform: scaleX(1);
    }

    .certification-card:hover {
      border-color: var(--color-primary);
      box-shadow: 0 12px 35px rgba(228, 63, 63, 0.15);
      transform: translateY(-8px);
    }

    .cert-icon {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, #364d59 0%, #2a3a44 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      transition: all 0.3s ease;
    }

    .certification-card:hover .cert-icon {
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      transform: rotate(360deg) scale(1.1);
    }

    .cert-icon i {
      font-size: 2.2rem;
      color: white;
    }

    .certification-card h4 {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--heading-color);
      margin-bottom: 15px;
    }

    .cert-description {
      font-size: 0.95rem;
      color: #6c757d;
      line-height: 1.6;
      margin-bottom: 20px;
      flex-grow: 1;
    }

    .cert-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
      color: #155724;
      padding: 8px 16px;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 700;
      margin-top: auto;
    }

    .cert-badge i {
      font-size: 1.1rem;
    }

    .certifications-footer {
      background: linear-gradient(135deg, #364d59 0%, #2a3a44 100%);
      border-radius: 16px;
      padding: 30px;
      color: white;
    }

    .certifications-footer h5 {
      font-size: 1.4rem;
      font-weight: 700;
      color: white;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .certifications-footer h5 i {
      color: #ffc107;
      font-size: 1.6rem;
    }

    .certifications-footer p {
      color: rgba(255, 255, 255, 0.9);
      font-size: 1rem;
    }

    .btn-cert-more {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--color-primary);
      color: white;
      padding: 12px 28px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 700;
      transition: all 0.3s ease;
      font-size: 0.95rem;
    }

    .btn-cert-more:hover {
      background: #c53535;
      color: white;
      transform: translateX(5px);
      box-shadow: 0 5px 20px rgba(228, 63, 63, 0.4);
    }

    .btn-cert-more i {
      font-size: 1.2rem;
      transition: transform 0.3s ease;
    }

    .btn-cert-more:hover i {
      transform: translateX(5px);
    }

    /* ===== Call to Action Principal Section ===== */
    .cta-main {
      padding: 90px 0;
      background: linear-gradient(135deg, #364d59 0%, #2a3a44 100%);
      position: relative;
      overflow: hidden;
    }

    .cta-main::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(228, 63, 63, 0.15) 0%, transparent 70%);
      border-radius: 50%;
    }

    .cta-main::after {
      content: '';
      position: absolute;
      bottom: -50%;
      left: -10%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(228, 63, 63, 0.1) 0%, transparent 70%);
      border-radius: 50%;
    }

    .cta-content {
      text-align: center;
      position: relative;
      z-index: 2;
    }

    .cta-icon {
      width: 100px;
      height: 100px;
      background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 30px;
      box-shadow: 0 10px 40px rgba(228, 63, 63, 0.4);
      animation: pulse-cta 3s infinite;
    }

    @keyframes pulse-cta {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(228, 63, 63, 0.4);
      }
      50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(228, 63, 63, 0.6);
      }
    }

    .cta-icon i {
      font-size: 3rem;
      color: white;
    }

    .cta-content h2 {
      font-size: 2.5rem;
      font-weight: 800;
      color: white;
      margin-bottom: 20px;
      line-height: 1.2;
    }

    .cta-content .lead {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.9);
      line-height: 1.7;
      margin-bottom: 40px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    .cta-buttons {
      display: flex;
      gap: 20px;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 18px 40px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 700;
      font-size: 1.05rem;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .btn-cta-primary {
      background: var(--color-primary);
      color: white;
      box-shadow: 0 8px 25px rgba(228, 63, 63, 0.4);
    }

    .btn-cta-primary::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.6s ease, height 0.6s ease;
    }

    .btn-cta-primary:hover::before {
      width: 400px;
      height: 400px;
    }

    .btn-cta-primary:hover {
      background: #c53535;
      color: white;
      transform: translateY(-3px);
      box-shadow: 0 12px 35px rgba(228, 63, 63, 0.6);
    }

    .btn-cta-secondary {
      background: white;
      color: var(--heading-color);
      border: 2px solid white;
    }

    .btn-cta-secondary:hover {
      background: transparent;
      color: white;
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    }

    .btn-cta-primary i,
    .btn-cta-secondary i {
      font-size: 1.3rem;
      position: relative;
      z-index: 1;
    }

    .btn-cta-primary span,
    .btn-cta-secondary span {
      position: relative;
      z-index: 1;
    }

    .cta-benefits {
      display: flex;
      gap: 30px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .benefit-item {
      display: flex;
      align-items: center;
      gap: 10px;
      color: white;
      font-size: 1rem;
      font-weight: 600;
    }

    .benefit-item i {
      color: #28a745;
      font-size: 1.3rem;
    }

    /* ===== Responsive - Nuevas Secciones ===== */
    @media (max-width: 991px) {
      .key-numbers,
      .certifications,
      .cta-main {
        padding: 60px 0;
      }

      .number-value {
        font-size: 2.5rem;
      }

      .number-label {
        font-size: 1.05rem;
      }

      .cta-content h2 {
        font-size: 2rem;
      }

      .cta-content .lead {
        font-size: 1.1rem;
      }

      .btn-cta-primary,
      .btn-cta-secondary {
        padding: 16px 32px;
        font-size: 1rem;
      }

      .certifications-footer h5 {
        font-size: 1.2rem;
      }

      .certifications-footer p {
        font-size: 0.95rem;
      }
    }

    @media (max-width: 767px) {
      .key-numbers,
      .certifications,
      .cta-main {
        padding: 50px 0;
      }

      .key-number-card,
      .certification-card {
        padding: 30px 20px;
      }

      .number-icon,
      .cert-icon {
        width: 70px;
        height: 70px;
      }

      .number-icon i,
      .cert-icon i {
        font-size: 2rem;
      }

      .number-value {
        font-size: 2.2rem;
      }

      .number-label {
        font-size: 1rem;
      }

      .number-description {
        font-size: 0.85rem;
      }

      .certification-card h4 {
        font-size: 1.2rem;
      }

      .cert-description {
        font-size: 0.9rem;
      }

      .cta-icon {
        width: 80px;
        height: 80px;
      }

      .cta-icon i {
        font-size: 2.5rem;
      }

      .cta-content h2 {
        font-size: 1.75rem;
      }

      .cta-content .lead {
        font-size: 1rem;
      }

      .cta-buttons {
        flex-direction: column;
        gap: 15px;
      }

      .btn-cta-primary,
      .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 15px 30px;
      }

      .cta-benefits {
        flex-direction: column;
        gap: 15px;
        align-items: center;
      }

      .certifications-footer {
        padding: 25px 20px;
      }

      .certifications-footer .row {
        text-align: center;
      }

      .certifications-footer .col-md-4 {
        margin-top: 20px;
      }

      .btn-cert-more {
        width: 100%;
        justify-content: center;
      }
    }

    @media (max-width: 575px) {
      .number-value {
        font-size: 2rem;
      }

      .cta-content h2 {
        font-size: 1.5rem;
      }

      .cta-content .lead {
        font-size: 0.95rem;
      }

      .benefit-item {
        font-size: 0.9rem;
      }
    }

/* ====== Service Modal Cards (MISSING STYLES) ====== */
.services-modal {
  padding: 80px 0;
  background: #fff;
}

.service-card-modal {
  background: #fff;
  border: 2px solid #f1f1f1;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-card-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(228, 63, 63, 0.05), transparent);
  transition: left 0.6s ease;
}

.service-card-modal:hover::before {
  left: 100%;
}

.service-card-modal:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 40px rgba(228, 63, 63, 0.2);
}

.service-icon-modal {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #c53535 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(228, 63, 63, 0.3);
}

.service-card-modal:hover .service-icon-modal {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(228, 63, 63, 0.4);
}

.service-icon-modal img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.service-icon-modal i {
  font-size: 2.5rem;
  color: white;
}

.service-card-modal h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.service-card-modal:hover h3 {
  color: var(--color-primary);
}

.service-card-modal p {
  color: var(--default-color);
  font-size: 1rem;
  margin-bottom: 20px;
}

.service-card-hover {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.service-card-modal:hover .service-card-hover {
  opacity: 1;
  transform: translateY(0);
}

.service-card-hover i {
  font-size: 1.3rem;
}

/* Responsive Modal Cards */
@media (max-width: 991px) {
  .services-modal {
    padding: 60px 0;
  }

  .service-card-modal {
    min-height: 260px;
    padding: 35px 25px;
  }

  .service-icon-modal {
    width: 80px;
    height: 80px;
  }

  .service-icon-modal img {
    width: 45px;
    height: 45px;
  }

  .service-icon-modal i {
    font-size: 2.2rem;
  }

  .service-card-modal h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 767px) {
  .services-modal {
    padding: 50px 0;
  }

  .service-card-modal {
    min-height: 240px;
    padding: 30px 20px;
  }

  .service-icon-modal {
    width: 75px;
    height: 75px;
  }

  .service-card-modal h3 {
    font-size: 1.3rem;
  }

  .service-card-modal p {
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {
  .service-card-modal {
    min-height: 220px;
  }

  .service-card-modal h3 {
    font-size: 1.2rem;
  }
}

/* ====================================
   PARTNER FLIP BACK BUTTON
==================================== */
.btn-flip-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-flip-back:hover {
  background: white;
  color: var(--heading-color);
}

.btn-flip-back i {
  font-size: 1.2rem;
}
