/* ===================================
   VARIABLES CSS - Personalizar según el diseño de Somos Claro
   =================================== */
:root {
    /* Colores principales - Claro Costa Rica */
    --primary-color: #E31E24;        /* Rojo Claro - color corporativo principal */
    --secondary-color: #C8202C;      /* Rojo oscuro para tarjetas */
    --accent-color: #F8B500;         /* Amarillo/Dorado para badges */
    --coral-color: #FF6B5B;          /* Coral para botones CTA */
    --dark-color: #2C2C2C;           /* Gris oscuro para formularios */
    --footer-color: #3A3A3A;         /* Gris footer */
    --light-color: #F5F5F5;          /* Blanco cremoso backgrounds */
    --white: #ffffff;
    --black: #000000;
    --text-color: #333333;
    --text-light: #666666;
    --gray-medium: #999999;

    /* Tipografía */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Transiciones */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* ===================================
   ESTILOS GENERALES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   HEADER Y NAVEGACIÓN
   =================================== */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.contact-info a,
.social-links a {
    color: var(--white);
    margin: 0 0.5rem;
    transition: color var(--transition-speed);
}

.contact-info a:hover,
.social-links a:hover {
    color: var(--primary-color);
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: var(--white) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all var(--transition-speed);
    position: relative;
}

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

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

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

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.hero-buttons .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===================================
   SECCIONES COMUNES
   =================================== */
section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===================================
   CARDS
   =================================== */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all var(--transition-speed);
    height: 100%;
}

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

.card-img-top {
    border-radius: 10px 10px 0 0;
    height: 250px;
    object-fit: cover;
}

/* ===================================
   BOTONES
   =================================== */
.btn {
    border-radius: 5px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===================================
   FORMULARIOS
   =================================== */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: all var(--transition-speed);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* ===================================
   FOOTER
   =================================== */
#main-footer {
    background-color: var(--dark-color);
    color: var(--white);
}

#main-footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

#main-footer a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-speed);
}

#main-footer a:hover {
    color: var(--white);
}

#main-footer ul li {
    margin-bottom: 0.5rem;
}

/* ===================================
   UTILIDADES
   =================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.overlay {
    position: relative;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.overlay > * {
    position: relative;
    z-index: 2;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

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

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* ===================================
   CUSTOM ALERTS
   =================================== */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    z-index: 9999;
    animation: slideInRight 0.5s ease-out;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================================
   PRELOADER
   =================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#preloader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===================================
   CONTACT PAGE SPECIFIC
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item {
    transition: all var(--transition-speed);
}

.contact-item:hover {
    transform: translateX(5px);
}

/* ===================================
   ICON BOXES & FEATURE CARDS
   =================================== */
.feature-box {
    text-align: center;
    padding: 2rem;
    transition: all var(--transition-speed);
}

.feature-box:hover {
    transform: translateY(-10px);
}

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

/* ===================================
   SECTION BACKGROUNDS
   =================================== */
.bg-light-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.bg-dark-gradient {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* ===================================
   CLARO SPECIFIC STYLES
   =================================== */

/* Top Navigation Bar (Red) */
.top-nav-red {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
}

.top-nav-red .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.top-nav-red .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Plan Cards (Tarjetas de Planes) */
.plan-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 12px;
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(227, 30, 36, 0.4);
}

.plan-badge {
    background-color: var(--accent-color);
    color: var(--black);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.plan-icon {
    min-width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    padding: 0 1rem;
    gap: 0.5rem;
}

.plan-icon i {
    margin: 0 !important;
}

.plan-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-data {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '✓';
    margin-right: 0.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin: 1rem 0;
}

.plan-price-old {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.5rem;
}

.plan-price-taxes {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.btn-plan {
    background-color: var(--white);
    border: 2px solid var(--white);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.btn-plan:hover {
    background-color: transparent;
    color: var(--white);
}

/* Hero Section with Speed Lines */
.hero-claro {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 800px;
    display: flex;
    align-items: center;
}

.hero-claro > .container {
    position: relative;
    z-index: 1;
}

.hero-claro::before,
.hero-claro::after {
    content: '';
    position: absolute;
    left: -50%;
    width: 200%;
    height: 80px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 40%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0.15) 60%,
        transparent 100%);
    transform: rotate(-15deg);
    z-index: 0;
}

.hero-claro::before {
    top: 15%;
    animation: speedLine1 4s ease-in-out infinite;
}

.hero-claro::after {
    top: 35%;
    animation: speedLine2 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes speedLine1 {
    0%, 100% {
        transform: rotate(-15deg) translateX(-10%);
        opacity: 0.6;
    }
    50% {
        transform: rotate(-15deg) translateX(10%);
        opacity: 1;
    }
}

@keyframes speedLine2 {
    0%, 100% {
        transform: rotate(-15deg) translateX(10%);
        opacity: 0.6;
    }
    50% {
        transform: rotate(-15deg) translateX(-10%);
        opacity: 1;
    }
}

.hero-discount {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-label {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin: 1rem 0;
}

.hero-plus-badge {
    background-color: var(--accent-color);
    color: var(--black);
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    margin-top: 1rem;
}

.hero-plus-badge i {
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

/* Contact Form (Dark) */
.contact-form-dark {
    background-color: var(--dark-color);
    padding: 2.5rem;
    border-radius: 8px;
    color: var(--white);
}

.contact-form-dark h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-form-dark .form-control,
.contact-form-dark .form-select {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 0.875rem;
    border-radius: 4px;
}

.contact-form-dark .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-form-dark .form-control:focus,
.contact-form-dark .form-select:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
    color: var(--white);
}

.contact-form-dark label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.btn-submit-coral {
    background-color: var(--coral-color);
    border: none;
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-submit-coral:hover {
    background-color: #ff5544;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 91, 0.4);
}

/* 5G Badge */
.badge-5g {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Service Icons */
.service-icon-box {
    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 1rem;
    font-size: 2rem;
    color: var(--white);
}

/* Claro Video Badge Lateral */
.claro-video-badge {
    position: absolute;
    right: 0;
    top: 20%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px 0 0 4px;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-bubble {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}

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

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: var(--white);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 75px;
}
