/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Colores energéticos */
:root {
    --primary: #3dec71;     /* Azul eléctrico */
    --secondary: #ff6b35;   /* Naranja vibrante */
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f1f1f1;
    --success: #28a745;
}

.navbar {
    background: linear-gradient(135deg, var(--primary), #005a8c);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--light) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-link {
    color: var(--light) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary) !important;
    transform: translateY(-2px);
}

/* Hero con carousel */
.hero-carousel .carousel-item img {
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.btn-primary {
    background: var(--secondary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Secciones */
section {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.card-service {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.card-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 190, 0.2);
}

.card-service i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-service h5 {
    color: var(--dark);
    font-weight: 600;
}

.card-service p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 40px 0;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

footer a:hover {
    color: #ffb399;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        font-size: 1.1rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
}
/* ==== GOOGLE MAPS ==== */
#map {
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,123,190,0.2);
    margin-top: 2rem;
}

/* ==== WHATSAPP FLOTANTE ==== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* ==== SEO BREADCRUMBS ==== */
.breadcrumb {
    background: var(--gray);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/*--------------------------------------------------------------*/
/* Tarjetas clicables */
.card-service {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card-service:hover {
    border-color: var(--primary);
    transform: translateY(-8px) !important;
}

.card-service img {
    transition: transform 0.3s ease;
}

.card-service:hover img {
    transform: scale(1.1);
}

/* Modal headers personalizados */
.modal-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-content {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.modal-body ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* TEXTO CENTRADO EN CAROUSEL */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    z-index: 10;
    padding: 0;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out;
}

.carousel-caption p {
    font-size: 1.4rem;
    font-weight: 400;
    animation: fadeInUp 1.2s ease-out;
}

.text-shadow {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

/* Overlay oscuro sutil */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Animación suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
    .carousel-caption p {
        font-size: 1.1rem;
    }
}

/* BOTÓN WHATSAPP MÁS ABAJO EN EL CARRUSEL */
.whatsapp-slide {
    position: absolute;
    bottom: 60px;           /* ANTES: 80px → AHORA: 60px (más abajo) */
    left: 50%;
    transform: translateX(-50%);
    background: #03f50f;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(37,211,102,0.5);
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-slide:hover {
    background: #128C7E;
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 12px 30px rgba(37,211,102,0.7);
}

.whatsapp-slide i {
    font-size: 1.5rem;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 8px 35px rgba(37,211,102,0.8); }
    100% { box-shadow: 0 8px 25px rgba(37,211,102,0.5); }
}

/* EN MÓVILES: MÁS ABAJO TAMBIÉN */
@media (max-width: 768px) {
    .whatsapp-slide {
        bottom: 50px;       /* ANTES: 60px → AHORA: 50px */
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* BOTÓN LLAMAR ROJO */
.btn-call {
    background: #fa021b;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-call:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

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

/* En móviles: solo ícono */
@media (max-width: 576px) {
    .btn-call {
        padding: 10px 14px;
    }
    .btn-call span {
        display: none;
    }
}

/* LOGO MÁS GRANDE SIN AFECTAR ALTURA DE NAVBAR */
/* LOGO CONTROLADO Y RESPONSIVO */
.logo-big {
    height: 100px !important;     /* Más grande que antes */
    width: auto;
    object-fit: contain;
    margin-top: -15px;           /* Sube el logo */
    margin-bottom: -15px;        /* Baja el logo → compensa altura */
    padding: 8px 0;              /* Espacio interno */
    transition: transform 0.3s ease;
}


.logo-big:hover {
    transform: scale(1.05);
}


/* NAVBAR FIJA CON ALTURA CONTROLADA */
/* Asegura que el navbar no crezca */
.navbar {
    padding: 0.5rem 1rem !important;
    min-height: 76px; /* Altura fija */
    align-items: stretch;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}


/* TEXTO DE MARCA (solo en pantallas grandes) */
.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    white-space: nowrap;
    line-height: 1.2;
}
/* En móviles: logo más pequeño y sin texto */
@media (max-width: 767.98px) {
    .logo-big {
        height: 40px;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
}
/* OPTIMIZACIÓN DE CARGA Y TRANSICIONES */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding-top: 76px;
}

body.loaded {
    opacity: 1;
}

/* Elementos ocultos hasta carga completa */
.navbar, .carousel, .card-service, .modal-content, .whatsapp-float {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loaded .navbar,
.loaded .carousel,
.loaded .card-service,
.loaded .modal-content,
.loaded .whatsapp-float {
    opacity: 1;
    visibility: visible;
}

/* Imágenes con fade-in */
img {
    opacity: 0;
    transition: opacity 0.6s ease;
}

img.loaded {
    opacity: 1;
}

/* Evita saltos de layout */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 4 tarjetas en fila grande, 2 en móvil */
@media (max-width: 767px) {
    .col-md-3 {
        margin-bottom: 1.5rem;
    }
}

/* ICONOS ANIMADOS EN LISTADOS DE MODALES */
.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.9rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0;
}

.service-item:hover {
    transform: translateX(8px);
    color: var(--primary);
}

.service-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.3rem;
    border-radius: 50%;
    background: rgba(0, 119, 190, 0.1);
    transition: all 0.4s ease;
}

.service-item:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
}

/* Animación de entrada al abrir modal */
.modal.show .service-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.modal.show .service-item:nth-child(1) { animation-delay: 0.1s; }
.modal.show .service-item:nth-child(2) { animation-delay: 0.2s; }
.modal.show .service-item:nth-child(3) { animation-delay: 0.3s; }
.modal.show .service-item:nth-child(4) { animation-delay: 0.4s; }
.modal.show .service-item:nth-child(5) { animation-delay: 0.5s; }
.modal.show .service-item:nth-child(6) { animation-delay: 0.6s; }
.modal.show .service-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Colores personalizados */
.text-purple { color: #6f42c1; }
.text-orange { color: #fd7e14; }
.text-teal { color: #20c997; }

/* Iconos con animación específica */
.icon-animate {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* TESTIMONIOS INDUSTRIALES - ESTILO PROFESIONAL */
.testimonial-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background: white;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,119,190,0.15) !important;
}

.testimonial-card .fa-quote-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-card .card-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #444;
}

/* En móviles: 1 columna */
@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

/* FORMULARIO DE TESTIMONIOS */
.star-rating {
    direction: rtl;
    unicode-bidi: bidi-override;
    font-size: 2rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

/* Validación Bootstrap */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
}

/* Animación al enviar */
button[type="submit"]:active {
    transform: scale(0.95);
}

/* SECCIÓN DE SERVICIOS - MODO OSCURO */
.services-section {
    background-color: #f8f9fa !important; /* Claro por defecto */
    transition: background-color 0.3s ease !important;
}

body.dark-mode .services-section {
    background-color: #1e1e1e !important;
}

/* Tarjetas de servicio */
body.dark-mode .card-service {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: #ddd !important;
}

body.dark-mode .card-service i {
    color: inherit !important;
}

body.dark-mode .card-service small {
    color: #aaa !important;
}

body.dark-mode .card-service h5,
body.dark-mode .card-service p {
    color: #e0e0e0 !important;
}

/* MODALES - MODO OSCURO */
body.dark-mode .modal-content {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

body.dark-mode .modal-header {
    border-bottom: 1px solid #444 !important;
}

body.dark-mode .modal-body {
    background-color: #1e1e1e !important;
}

body.dark-mode .modal-footer {
    background-color: #1e1e1e !important;
    border-top: 1px solid #444 !important;
}

/* Headers personalizados */
.modal-header-primary { background: var(--bs-primary) !important; color: white !important; }
.modal-header-secondary { background: var(--bs-secondary) !important; color: white !important; }
.modal-header-success { background: #28a745 !important; color: white !important; }
.modal-header-info { background: #0d6efd !important; color: white !important; }

body.dark-mode .modal-header-primary { background: #0d6efd !important; }
body.dark-mode .modal-header-secondary { background: #6c757d !important; }
body.dark-mode .modal-header-success { background: #218838 !important; }
body.dark-mode .modal-header-info { background: #0d6efd !important; }

/* Texto e íconos */
body.dark-mode .modal-title,
body.dark-mode .modal-body p,
body.dark-mode .modal-body span,
body.dark-mode .modal-body h6 {
    color: #e0e0e0 !important;
}

body.dark-mode .text-primary { color: #0d6efd !important; }
body.dark-mode .text-success { color: #28a745 !important; }
body.dark-mode .text-warning { color: #ffc107 !important; }
body.dark-mode .text-danger { color: #dc3545 !important; }
body.dark-mode .text-info { color: #0dcaf0 !important; }

/* Botones */
body.dark-mode .btn-success {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}
body.dark-mode .btn-secondary {
    background-color: #495057 !important;
    border-color: #495057 !important;
    color: #fff !important;
}

/* SECCIÓN MEMBRESÍA - MODO OSCURO */
.membership-section {
    background-color: #f8f9fa !important;
    transition: background-color 0.3s ease !important;
}

body.dark-mode .membership-section {
    background-color: #1e1e1e !important;
}

/* Títulos y texto */
body.dark-mode .membership-section h2,
body.dark-mode .membership-section p,
body.dark-mode .membership-section .lead {
    color: #e0e0e0 !important;
}

/* Formulario */
body.dark-mode .membership-section .form-label {
    color: #ddd !important;
}

body.dark-mode .membership-section .form-control {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: #fff !important;
}

body.dark-mode .membership-section .form-control::placeholder {
    color: #888 !important;
}

/* Botón primario */
body.dark-mode .membership-section .btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* Texto del botón de pago */
body.dark-mode .membership-section .text-center p {
    color: #ccc !important;
}

/* FOOTER COMPACTO - ALTURA REDUCIDA */
.footer-compact {
    padding: 1rem 0 !important;
    font-size: 0.875rem !important;
}

.footer-compact .container {
    padding: 0 !important;
}

.footer-compact h5 {
    margin-bottom: 0.5rem !important;
    font-size: 1.1rem !important;
}

.footer-compact p {
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
}

.footer-compact hr {
    margin: 0.75rem 0 !important;
    opacity: 0.5 !important;
}

.footer-compact .text-center {
    margin-top: 0.5rem !important;
    font-size: 0.8rem !important;
}

/* CTA COMPACTO - ALTURA REDUCIDA */
.cta-compact {
    padding: 2.5rem 0 !important;
    font-size: 0.95rem !important;
}

.cta-compact h3 {
    margin-bottom: 0.75rem !important;
    font-size: 1.5rem !important;
}

.cta-compact .lead {
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
}

.cta-compact .btn-lg {
    padding: 0.5rem 1.5rem !important;
    font-size: 1rem !important;
}

/* EVITAR SCROLL MIENTRAS ESTÁ EL LOGIN */
body:has(#login-screen:not([style*="display: none"])) {
    overflow: hidden;
}

/* TRANSICIÓN SUAVE DEL LOGIN */
#login-screen {
    opacity: 1;
    visibility: visible;
}
#login-screen[style*="display: none"] {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ESTILO DEL BOTÓN (mismo que en el ejemplo oficial) */
.blue-button {
    background-color: #3483FA !important;
    color: white !important;
    padding: 10px 24px !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    display: inline-block !important;
    font-size: 16px !important;
    font-family: Arial, sans-serif !important;
    transition: background-color 0.3s !important;
}
.blue-button:hover {
    background-color: #2a68c8 !important;
}

/* Centrar el botón */
#mp-button-container {
    display: flex;
    justify-content: center;
    min-height: 60px;
    margin-top: 1rem;
}

/* === MENSAJE DE ÉXITO BONITO === */
.success-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 420px;
    margin: 20px auto;
    border: 3px solid #198754;
}

.success-icon {
    font-size: 4rem;
    color: #198754;
    margin-bottom: 1rem;
}

.success-card h3 {
    color: #198754;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.code-box {
    background: #f8f9fa;
    border: 2px dashed #0d6efd;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.code-label {
    display: block;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.code-display {
    background: #0d6efd;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.btn-copy {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-copy:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-copy:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .success-card { padding: 2rem 1.5rem; }
    .code-display { font-size: 1.6rem; }
}

