/* ============================================
   IMPORTAR GOOGLE FONTS - MONTSERRAT
   ============================================ */
   @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

   /* ============================================
      CONFIGURACIÓN GLOBAL
      ============================================ */
   body {
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   /* Todos los títulos usan Montserrat Bold */
   h1, h2, h3, h4, h5, h6,
   .navbar-brand,
   .footer-logo-text {
       font-family: 'Montserrat', sans-serif;
       font-weight: 700;
   }
   
   /* ============================================
      HEADER / MASTHEAD STYLES
      ============================================ */
   .masthead {
       position: relative;
       overflow: hidden;
       padding-top: 0;
       padding-bottom: 0;
       margin-top: 7rem;
       margin-left: 1.5rem;
       margin-right: 1.5rem;
       margin-bottom: 1.5rem;
       height: 85vh;
       background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                   url('/assets/fondo.jpeg') no-repeat center center;
       background-size: cover;
       border-radius: 2rem;
       display: flex;
       align-items: center;
   }
   
   .masthead .container {
       height: 100%;
   }
   
   .masthead .row {
       height: 100%;
   }
   
   .masthead h1 {
       font-size: 3.5rem;
       text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
       font-family: 'Montserrat', sans-serif;
       font-weight: 800;
   }
   
   .masthead p {
       font-size: 1.15rem;
       text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
       text-align: justify;
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   .masthead .btn-outline-light {
       border-width: 2px;
       font-weight: 600;
       transition: all 0.3s ease;
       font-family: 'Montserrat', sans-serif;
   }
   
   .masthead .btn-outline-light:hover {
       background-color: white;
       color: #212529;
       transform: translateY(-2px);
       box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
   }
   
   /* ============================================
      SERVICIOS SECTION
      ============================================ */
   .servicios-section {
       padding: 5rem 0;
       background-color: #f8f9fa;
   }
   
   .servicios-header {
       max-width: 600px;
       margin-bottom: 3rem;
   }
   
   .section-label {
       display: inline-block;
       background-color: #e9ecef;
       padding: 0.5rem 1.5rem;
       border-radius: 2rem;
       font-size: 0.875rem;
       font-weight: 600;
       color: #495057;
       margin-bottom: 1rem;
       font-family: 'Montserrat', sans-serif;
   }
   
   .servicios-title {
       font-size: 2.5rem;
       font-weight: 700;
       line-height: 1.2;
       margin-bottom: 1.5rem;
       font-family: 'Montserrat', sans-serif;
   }
   
   .servicios-description {
       font-size: 1rem;
       color: #6c757d;
       line-height: 1.6;
       text-align: justify;
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   /* Acordeón de Servicios */
   .servicios-accordion {
       display: flex;
       gap: 1rem;
       height: 600px;
       margin-top: 2rem;
   }
   
   .servicio-panel {
       position: relative;
       flex: 1;
       border-radius: 1.5rem;
       overflow: hidden;
       transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
       cursor: pointer;
       background-size: cover;
       background-position: center;
   }
   
   .servicio-panel::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       bottom: 0;
       background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
       transition: background 0.3s ease;
   }
   
   .servicio-panel:hover {
       flex: 2.5;
   }
   
   .servicio-panel:hover::before {
       background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
   }
   
   .servicio-content {
       position: relative;
       z-index: 2;
       height: 100%;
       display: flex;
       flex-direction: column;
       justify-content: flex-end;
       padding: 2rem;
       color: white;
   }
   
   .servicio-number {
       font-size: 4rem;
       font-weight: 800;
       opacity: 0.3;
       line-height: 1;
       margin-bottom: 1rem;
       transition: opacity 0.3s ease;
       font-family: 'Montserrat', sans-serif;
   }
   
   .servicio-panel:hover .servicio-number {
       opacity: 0.5;
   }
   
   .servicio-icon {
       font-size: 2.5rem;
       margin-bottom: 1rem;
   }
   
   .servicio-title {
       font-size: 1.5rem;
       font-weight: 700;
       margin-bottom: 0.5rem;
       transition: font-size 0.3s ease;
       font-family: 'Montserrat', sans-serif;
   }
   
   .servicio-panel:hover .servicio-title {
       font-size: 1.75rem;
   }
   
   .servicio-description {
       font-size: 0.95rem;
       line-height: 1.5;
       opacity: 0;
       max-height: 0;
       overflow: hidden;
       transition: opacity 0.3s ease, max-height 0.3s ease;
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   .servicio-panel:hover .servicio-description {
       opacity: 1;
       max-height: 200px;
   }
   
   .servicio-label {
       position: absolute;
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%) rotate(-90deg);
       font-size: 1.2rem;
       font-weight: 700;
       white-space: nowrap;
       opacity: 1;
       transition: opacity 0.3s ease;
       pointer-events: none;
       font-family: 'Montserrat', sans-serif;
   }
   
   .servicio-panel:hover .servicio-label {
       opacity: 0;
   }
   
   /* ============================================
      SECCIÓN POR QUÉ ESCOGERNOS
      ============================================ */
   .porque-section {
       padding: 5rem 0;
       background-color: #ffffff;
   }
   
   .section-label-center {
       display: inline-block;
       background-color: #e9ecef;
       padding: 0.5rem 1.5rem;
       border-radius: 2rem;
       font-size: 0.875rem;
       font-weight: 600;
       color: #495057;
       margin-bottom: 1.5rem;
       font-family: 'Montserrat', sans-serif;
   }
   
   .porque-title {
       font-size: 2.5rem;
       font-weight: 700;
       line-height: 1.3;
       margin-bottom: 4rem;
       max-width: 700px;
       margin-left: auto;
       margin-right: auto;
       font-family: 'Montserrat', sans-serif;
   }
   
   .caracteristicas-grid {
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 2rem;
       margin-top: 3rem;
   }
   
   .caracteristica-card {
       background-color: #f8f9fa;
       border-radius: 1.5rem;
       padding: 2.5rem 2rem;
       transition: all 0.3s ease;
       border: 2px solid transparent;
   }
   
   .caracteristica-card:hover {
       background-color: #ffffff;
       border-color: #e9ecef;
       transform: translateY(-5px);
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
   }
   
   .caracteristica-icon {
       width: 50px;
       height: 50px;
       background-color: #ffffff;
       border-radius: 12px;
       display: flex;
       align-items: center;
       justify-content: center;
       margin-bottom: 1.5rem;
       transition: all 0.3s ease;
   }
   
   .caracteristica-card:hover .caracteristica-icon {
       background-color: #212529;
   }
   
   .caracteristica-icon i {
       font-size: 1.5rem;
       color: #212529;
       transition: color 0.3s ease;
   }
   
   .caracteristica-card:hover .caracteristica-icon i {
       color: #ffffff;
   }
   
   .caracteristica-title {
       font-size: 1.25rem;
       font-weight: 700;
       margin-bottom: 1rem;
       color: #212529;
       font-family: 'Montserrat', sans-serif;
   }
   
   .caracteristica-description {
       font-size: 0.95rem;
       line-height: 1.6;
       color: #6c757d;
       text-align: justify;
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   /* ============================================
      SECCIÓN QUIENES SOMOS
      ============================================ */
   .quienes-somos-section {
       padding: 5rem 0;
       background-color: #ffffff;
   }
   
   .section-label-left {
       display: inline-block;
       background-color: #e9ecef;
       padding: 0.5rem 1.5rem;
       border-radius: 2rem;
       font-size: 0.875rem;
       font-weight: 600;
       color: #495057;
       margin-bottom: 1.5rem;
       font-family: 'Montserrat', sans-serif;
   }
   
   .quienes-title {
       font-size: 2.5rem;
       font-weight: 700;
       line-height: 1.3;
       margin-bottom: 2rem;
       max-width: 500px;
       font-family: 'Montserrat', sans-serif;
   }
   
   .quienes-description {
       font-size: 1rem;
       line-height: 1.8;
       color: #495057;
       text-align: justify;
       margin-bottom: 3rem;
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   .mision-vision-grid {
       display: grid;
       grid-template-columns: repeat(2, 1fr);
       gap: 2rem;
       margin-top: 2rem;
   }
   
   .mv-card {
       background-color: #f8f9fa;
       border-radius: 1.5rem;
       padding: 3rem 2.5rem;
       transition: all 0.4s ease;
       position: relative;
       overflow: hidden;
   }
   
   .mv-card::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       width: 4px;
       height: 0;
       background: linear-gradient(to bottom, #212529, #495057);
       transition: height 0.4s ease;
   }
   
   .mv-card:hover::before {
       height: 100%;
   }
   
   .mv-card:hover {
       background-color: #ffffff;
       box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
       transform: translateY(-5px);
   }
   
   .mv-icon {
       width: 60px;
       height: 60px;
       background-color: #ffffff;
       border-radius: 15px;
       display: flex;
       align-items: center;
       justify-content: center;
       margin-bottom: 1.5rem;
       transition: all 0.3s ease;
       box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
   }
   
   .mv-card:hover .mv-icon {
       background-color: #212529;
       transform: scale(1.1);
   }
   
   .mv-icon i {
       font-size: 1.8rem;
       color: #212529;
       transition: color 0.3s ease;
   }
   
   .mv-card:hover .mv-icon i {
       color: #ffffff;
   }
   
   .mv-title {
       font-size: 1.5rem;
       font-weight: 700;
       margin-bottom: 1.25rem;
       color: #212529;
       font-family: 'Montserrat', sans-serif;
   }
   
   .mv-description {
       font-size: 0.95rem;
       line-height: 1.7;
       color: #6c757d;
       text-align: justify;
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   /* ============================================
      FOOTER STYLES
      ============================================ */
   .footer {
       background-color: #000000;
       color: #ffffff;
       padding: 3rem 0 2rem;
   }
   
   .footer-logo {
       display: flex;
       align-items: center;
       margin-bottom: 2rem;
   }
   
   .footer-logo img {
       height: 50px;
       margin-right: 12px;
   }
   
   .footer-logo-text {
       font-size: 1.25rem;
       font-weight: 700;
       color: #ffffff;
       text-transform: uppercase;
       letter-spacing: 1px;
       font-family: 'Montserrat', sans-serif;
   }
   
   .footer-content {
       display: flex;
       justify-content: space-between;
       align-items: flex-start;
       flex-wrap: wrap;
       gap: 2rem;
   }
   
   .footer-left {
       flex: 1;
       min-width: 250px;
   }
   
   .footer-contact {
       display: flex;
       flex-direction: column;
       gap: 0.75rem;
   }
   
   .footer-contact-item {
       display: flex;
       align-items: center;
       font-size: 0.95rem;
       color: #b8b8b8;
       transition: color 0.3s ease;
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   .footer-contact-item:hover {
       color: #ffffff;
   }
   
   .footer-contact-item i {
       margin-right: 0.75rem;
       font-size: 1.1rem;
   }
   
   .footer-right {
       display: flex;
       flex-direction: column;
       align-items: flex-end;
   }
   
   .footer-social {
       display: flex;
       gap: 1rem;
       margin-bottom: 2rem;
   }
   
   .social-icon {
       width: 45px;
       height: 45px;
       background-color: #1a1a1a;
       border-radius: 50%;
       display: flex;
       align-items: center;
       justify-content: center;
       color: #ffffff;
       font-size: 1.1rem;
       transition: all 0.3s ease;
       text-decoration: none;
   }
   
   .social-icon:hover {
       background-color: #333333;
       color: #ffffff;
       transform: translateY(-3px);
   }
   
   .social-icon.facebook:hover {
       background-color: #1877f2;
   }
   
   .social-icon.instagram:hover {
       background-color: #E4405F;
   }
   
   .social-icon.linkedin:hover {
       background-color: #0077b5;
   }
   
   .social-icon.youtube:hover {
       background-color: #ff0000;
   }
   
   .footer-copyright {
       font-size: 0.875rem;
       color: #b8b8b8;
       text-align: right;
       font-family: 'Montserrat', sans-serif;
       font-weight: 400;
   }
   
   /* ============================================
      RESPONSIVE DESIGN
      ============================================ */
   
   /* Tablets y menores */
   @media (max-width: 992px) {
       .masthead {
           margin-top: 6rem;
           margin-left: 1rem;
           margin-right: 1rem;
       }
       
       .masthead h1 {
           font-size: 2.5rem;
       }
       
       .masthead p {
           font-size: 1rem;
       }
   
       .servicios-accordion {
           flex-direction: column;
           height: auto;
       }
   
       .servicio-panel {
           height: 150px;
           flex: initial;
       }
   
       .servicio-panel:hover {
           flex: initial;
           height: 350px;
       }
   
       .servicio-label {
           transform: translate(-50%, -50%) rotate(0deg);
           top: 50%;
           left: 50%;
       }
   
       .servicios-title {
           font-size: 2rem;
       }
   
       .caracteristicas-grid {
           grid-template-columns: repeat(2, 1fr);
           gap: 1.5rem;
       }
   
       .porque-title {
           font-size: 2rem;
       }
   
       .quienes-title {
           font-size: 2rem;
       }
   
       .mision-vision-grid {
           gap: 1.5rem;
       }
   }
   
   /* Móviles */
   @media (max-width: 768px) {
       .masthead {
           height: auto;
           min-height: 85vh;
           border-radius: 1.5rem;
       }
       
       .masthead h1 {
           font-size: 2rem;
       }
   
       .servicios-section {
           padding: 3rem 0;
       }
   
       .servicios-title {
           font-size: 1.75rem;
       }
   
       .servicio-number {
           font-size: 3rem;
       }
   
       /* Ajustes para servicios en móvil */
       .servicio-panel {
           height: 200px;
           min-height: 200px;
       }
   
       .servicio-panel:hover {
           height: 450px;
           min-height: 450px;
       }
   
       .servicio-content {
           padding: 1.5rem;
       }
   
       .servicio-icon {
           font-size: 2rem;
           margin-bottom: 0.75rem;
       }
   
       .servicio-title {
           font-size: 1.25rem;
       }
   
       .servicio-panel:hover .servicio-title {
           font-size: 1.4rem;
       }
   
       .servicio-description {
           font-size: 1rem;
           line-height: 1.6;
       }
   
       .servicio-panel:hover .servicio-description {
           max-height: 300px;
           overflow-y: auto;
       }
   
       .servicio-label {
           font-size: 1rem;
       }
   
       .caracteristicas-grid {
           grid-template-columns: 1fr;
           gap: 1.5rem;
       }
   
       .porque-section {
           padding: 3rem 0;
       }
   
       .porque-title {
           font-size: 1.75rem;
           margin-bottom: 2rem;
       }
   
       .caracteristica-card {
           padding: 2rem 1.5rem;
       }
   
       .quienes-somos-section {
           padding: 3rem 0;
       }
   
       .quienes-title {
           font-size: 1.75rem;
       }
   
       .mision-vision-grid {
           grid-template-columns: 1fr;
           gap: 1.5rem;
       }
   
       .mv-card {
           padding: 2.5rem 2rem;
       }
   
       .footer {
           padding: 2.5rem 0 1.5rem;
       }
   
       .footer-content {
           flex-direction: column;
       }
   
       .footer-right {
           align-items: flex-start;
           width: 100%;
       }
   
       .footer-copyright {
           text-align: left;
       }
   }
   
   /* Pantallas extra pequeñas (móviles pequeños) */
   @media (max-width: 480px) {
       .servicio-panel {
           height: 180px;
           min-height: 180px;
       }
   
       .servicio-panel:hover {
           height: 500px;
           min-height: 500px;
       }
   
       .servicio-content {
           padding: 1.25rem;
           justify-content: space-between;
       }
   
       .servicio-icon {
           font-size: 1.75rem;
           margin-bottom: 0.5rem;
       }
   
       .servicio-title {
           font-size: 1.15rem;
           line-height: 1.3;
       }
   
       .servicio-panel:hover .servicio-title {
           font-size: 1.3rem;
           margin-bottom: 1rem;
       }
   
       .servicio-description {
           font-size: 0.95rem;
           line-height: 1.5;
       }
   
       .servicio-panel:hover .servicio-description {
           max-height: 350px;
           overflow-y: auto;
           padding-right: 0.5rem;
       }
   
       .servicio-label {
           font-size: 0.9rem;
       }
   
       /* Espaciado entre acordeones */
       .servicios-accordion {
           margin-bottom: 1rem;
       }
   }

   /* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    line-height: 1;
}

/* Animación de pulso */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }
}