/* 
* GoData Costa Rica - Estilos Unificados
* Archivo CSS principal para toda la web
*/

/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary-color: #18cb96;
    --secondary-color: #0febc5;
    --accent-color: #ff6b00;
    --light-bg: #f8f9fa;
    --dark-bg: #121212;
}

/* ===== ESTILOS GENERALES ===== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    scroll-behavior: smooth;
}

.cotizador-container, .contact-form {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 30px;
    text-align: center;
}

.section-title h2 {
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #6c757d;
    font-size: 1.1rem;
}

.section-title.text-start h2:after {
    left: 0;
    transform: none;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    padding: 10px 0;
}

.navbar-brand img {
    height: 55px;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

/* ===== BOTONES ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-cart {
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.btn-cart:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* ===== FORMULARIOS ===== */
.form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

textarea.form-control {
    height: auto;
    min-height: 120px;
}

/* ===== TARJETAS Y COMPONENTES ===== */
.price-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.price-card .total {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.disclaimer {
    background-color: rgba(255, 107, 0, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
}

.service-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: none;
    background-color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.service-card p {
    color: #6c757d;
}

.highlight-box {
    background-color: rgba(24, 203, 150, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 15px;
}

.soporte-card {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 15px 0;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: white;
}

.soporte-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.soporte-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* ===== HERO SECTION ===== */
/* Estilos del Hero con imagen de fondo */
.hero {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(24, 203, 150, 0.7)), 
                url('../img/hero.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 180px 20px 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -90px; /* Compensar el padding-top del body */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-top: 100px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
        margin-top: -70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* Variantes de hero para diferentes páginas */
.hero-cotizacion {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(24, 203, 150, 0.7)), 
                url('../img/hero.jpg') no-repeat center center;
}

.hero-servicios {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(24, 203, 150, 0.7)), 
                url('../img/hero.jpg') no-repeat center center;
}

/* Overlay para dar más énfasis al texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===== SECCIÓN COTIZADOR WIZARD ===== */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.step-active {
    background-color: var(--primary-color);
    color: white;
}

.step-completed {
    background-color: var(--primary-color);
    color: white;
}

.step-completed::after {
    content: '✓';
    font-weight: bold;
}

.step-label {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.wizard-content {
    display: none;
}

.wizard-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.thanks-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== SMART HOME ===== */
.smart-home-device {
    text-align: center;
    margin-bottom: 30px;
}

.device-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(24, 203, 150, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.device-icon i {
    font-size: 36px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.smart-home-device:hover .device-icon {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.smart-home-device:hover .device-icon i {
    color: white;
}

.bg-gradient-light {
    background: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ===== TIENDA ONLINE ===== */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: none;
    background-color: white;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    object-fit: cover;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    border: 1px solid #ced4da;
    background-color: white;
    color: #6c757d;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== MAPA Y COBERTURA ===== */
.map-area {
    position: relative;
}

.map-pin {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    animation: pulsate 1.5s ease-out infinite;
}

.map-pin:after {
    content: "";
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background-color: white;
    position: absolute;
    border-radius: 50%;
}

.map-area h3 {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-area .san-carlos {
    top: 40%;
    left: 45%;
}

.map-area .fortuna {
    top: 30%;
    left: 55%;
}

/* ===== BOTONES FLOTANTES ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.cart-btn {
    position: relative;
    padding-right: 15px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: 0;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 0 30px;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 50px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulsate {
    0% {
        transform: rotate(-45deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(-45deg) scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: rotate(-45deg) scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .wizard-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .wizard-steps::before {
        display: none;
    }
    
    .step-label {
        position: static;
        transform: none;
        margin-top: 5px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .wizard-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 992px) {
    .service-card, .smart-home-device {
        margin-bottom: 30px;
    }
    
    .footer-links {
        margin-bottom: 30px;
    }
}