:root {
    --primary-color: #2a5daa;
    --secondary-color: #ff6b35;
    --dark-bg: #1b2638;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #4a7dca;
    --text-color: #e0e0e0;
    --light-bg: #2d3748;
    --white: #1a202c;
    --dark-bg: #0f1419;
}

[data-theme="dark"] .carousel-title,
[data-theme="dark"] .carousel-text,
[data-theme="dark"] .carousel-category {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-carousel {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-title {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .footer-links a {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--secondary-color) !important;
}

[data-theme="dark"] .footer-social a {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .footer-social a:hover {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .footer-bottom p {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .navbar {
    background-color: #1a202c !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: #ffffff !important;
}

[data-theme="dark"] .theme-toggle {
    color: #ffffff !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

.navbar {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.navbar-brand .logo {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

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

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(42, 93, 170, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232a5daa' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-toggler {
    border-color: #ffffff;
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--primary-color) !important;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.btn-contratar {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contratar:hover {
    background-color: #e55a25;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.carousel-section {
    margin-top: 76px;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 93, 170, 0.8), rgba(27, 38, 56, 0.7));
}

.carousel-caption {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    text-align: left;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-text {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-carousel {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-carousel:hover {
    background-color: #e55a25;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.section-padding {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.garantia-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.garantia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(42, 93, 170, 0.2);
}

.garantia-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.garantia-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.garantia-text {
    color: var(--text-color);
    font-size: 1rem;
}

.accordion-item {
    border: none;
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: var(--white);
    color: var(--text-color);
    font-weight: 600;
    padding: 1.5rem;
    font-size: 1.1rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.plan-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 3px solid var(--secondary-color);
    transform: scale(1.05);
}

.plan-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(42, 93, 170, 0.2);
}

.plan-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #e55a25);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-bg);
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plan-speed {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price .period {
    font-size: 1.2rem;
    color: var(--text-color);
}

.plan-tagline {
    color: var(--text-color);
    font-style: italic;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.8rem 0;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-features li i {
    color: #28a745;
    font-size: 1.2rem;
}

.btn-plan {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-plan:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(42, 93, 170, 0.3);
    color: var(--white);
}

.cobertura-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: var(--transition);
}

.cobertura-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 93, 170, 0.15);
}

.cobertura-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cobertura-title i {
    color: var(--secondary-color);
}

.cobertura-list {
    list-style: none;
    padding: 0;
}

.cobertura-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-bg);
    display: flex;
    gap: 1rem;
}

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

.cobertura-list li i {
    color: #28a745;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.cobertura-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

.cobertura-list p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nosotros-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nosotros-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nosotros-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.nosotros-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(42, 93, 170, 0.95), transparent);
    padding: 2rem 1.5rem;
    transform: translateY(70%);
    transition: var(--transition);
}

.nosotros-card:hover .nosotros-overlay {
    transform: translateY(0);
}

.nosotros-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.contacto-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

.contacto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(42, 93, 170, 0.2);
}

.contacto-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.contacto-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contacto-link {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contacto-link:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.contacto-info,
.contacto-address {
    color: var(--text-color);
    font-size: 1rem;
}

.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    
    .btn-contratar {
        margin-top: 1rem;
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plan-card.featured {
        transform: scale(1);
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-text {
        font-size: 0.9rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nosotros-card {
        height: 250px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
