:root {
--primary: #1a1a1a;
--accent: #25d366; 
--blue: #007bff;
--bg-gray: #f4f7f6;
--white: #ffffff;
--header-h: 70px;
}

/* --- TIPOGRAFÍA Y RESET --- */
* { 
margin: 0; 
padding: 0; 
box-sizing: border-box; 
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
scroll-behavior: smooth; 
}

body { overflow-x: hidden; }

/* --- PRELOADER --- */
#preloader {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: #fff; display: flex; justify-content: center; align-items: center;
z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s;
}
.loader-content { text-align: center; }
.loader-logo { height: 60px; animation: pulse 1.5s infinite; margin-bottom: 15px; }
.loader-bar { width: 120px; height: 3px; background: #eee; position: relative; overflow: hidden; margin: 0 auto; }
.loader-bar::after { content: ''; position: absolute; left: -100%; width: 100%; height: 100%; background: var(--blue); animation: load 1.5s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes load { 0% { left: -100%; } 100% { left: 100%; } }
.loader-hidden { opacity: 0; visibility: hidden; }

/* --- NAVIGATION --- */
.navbar {
position: fixed; top: 0; width: 100%; height: var(--header-h);
background: rgba(255, 255, 255, 0.98); z-index: 2000;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 20px; }
.brand-wrapper { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 35px; width: auto; }
.brand { font-weight: 900; font-size: 1.5rem; color:var(--blue); letter-spacing: -1px; }

.nav-menu ul { display: flex; list-style: none; gap: 15px; }
.nav-link { 
text-decoration: none; color: var(--primary); font-weight: 600; 
font-size: 0.8rem; text-transform: uppercase; padding: 10px;
transition: transform 0.3s; display: inline-block;
}
.nav-link:hover { transform: translateY(-3px); color: var(--blue); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 25px; height: 3px; background: var(--primary); transition: 0.3s; }

/* --- HERO SLIDER --- */
#inicio { height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: white; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.slide.active img { animation: kenburns 10s linear infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.15); }}
        
.hero-content { text-align: center; z-index: 10; padding: 20px; }
.hero-content h1 { font-size: clamp(1.8rem, 8vw, 3.5rem); text-shadow: 2px 2px 10px rgba(0,0,0,0.5); font-weight: 800; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; }

/* --- SECCIONES GENERALES --- */
section { padding: 60px 20px; scroll-margin-top: var(--header-h); }
.section-container { max-width: 1200px; margin: 0 auto; }
h2 { font-size: 2rem; margin-bottom: 30px; text-align: center; text-transform: uppercase; font-weight: 800; }
h3 { margin: 30px 0 20px; text-align: center; color: var(--blue); }

/* --- TARIFAS --- */
#tarifas { background: var(--bg-gray); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.price-card {
    background: white;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e6e6e6; /* subtle gray border */
    box-shadow: 0 2px 6px rgba(0,0,0,0.06); /* minimal card shadow */
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.price-card.recommended {
    border: 1px solid #ffc107; /* slightly reduced border to tone down visibility */
    /* Softer warm background for recommended card (more subtle, less prominent) */
    background: linear-gradient(180deg, rgba(255,250,235,0.55), #ffffff);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06); /* softer, less prominent shadow */
}

.recommended-badge {
    background: #ffc107;
    color: #1a1a1a;
    padding: 4px 10px; /* slightly reduced padding */
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.78rem; /* slightly smaller */
    margin: 0 auto 6px;
    display: inline-block;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue); /* keep current hover highlight */
    box-shadow: 0 8px 30px rgba(0,0,0,0.12); /* stronger shadow on hover for emphasis */
}
.price-container { margin-bottom: 20px; padding: 15px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.price-annual { font-size: 1.1rem; font-weight: 600; color: #777; display: block; }

/* Ensure small inside price-annual aligns items (keeps badge vertically centered) */
.price-annual small { display: inline-flex; align-items: center; gap: 6px; }

/* Offer badge used inline within price-annual */
.offer-badge {
    display: inline-block;
    vertical-align: middle; /* align with the text baseline */
    line-height: 1;
    color: #ff6a00; /* orange highlight */
    background: rgba(255,106,0,0.08);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 6px;
    font-size: 0.63rem; /* ~1/3 smaller */
}
.price-monthly { font-size: 1.8rem; font-weight: 800; color: var(--blue); display: block; }
.price-card ul { list-style: none; margin-bottom: 25px; text-align: left; flex-grow: 1; }
.price-card ul li { margin-bottom: 10px; font-size: 0.8rem; color: #555; display: flex; align-items: center; }
.price-card ul li i { color: var(--accent); margin-right: 10px; }

.note-box { background: #fff; border-left: 5px solid #ffc107; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.custom-offer { background: var(--primary); color: white; padding: 30px; border-radius: 15px; text-align: center; }

/* --- SERVICIOS --- */
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card img { width: 100%; height: 220px; object-fit: cover; transition: 0.5s; }
.card:hover img { transform: scale(1.1); }
.card-body { padding: 25px; }

/* --- CONTACTO --- */
.contact-flex { display: flex; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.1); }
.contact-img { flex: 1; background: url('images/contacto.webp') center/cover; min-height: 400px; }
.contact-form-side { flex: 1.2; padding: 40px; }
.form-group { margin-bottom: 15px; }
input, textarea { width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 10px; outline: none; transition: 0.3s; font-size: 1rem; }
input:focus, textarea:focus { border-color: var(--blue); }
.btn-ws { width: 100%; padding: 18px; background: var(--accent); color: white; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.1rem; }

/* --- UBICACION Y FOOTER --- */
.map-wrapper { width: 100%; height: 400px; border-radius: 20px; overflow: hidden; }
.map-wrapper img { width: 100%; height: 100%; object-fit: cover; }
footer { background: var(--primary); color: white; padding: 60px 20px 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icons a { color: white; font-size: 1.5rem; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.8rem; opacity: 0.6; }

@media (min-width: 1024px) {
/*.pricing-grid { grid-template-columns: repeat(4, 1fr); }*/
}

/* --- RESPONSIVE 800px --- */
@media (max-width: 800px) {
.menu-toggle { display: flex; }
.nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: white; padding-top: 100px; transition: 0.4s; }
.nav-menu.active { right: 0; }
.nav-menu ul { flex-direction: column; align-items: center; gap: 30px; }
.contact-flex { flex-direction: column; }
.contact-img { min-height: 250px; }
.card img { height: 280px; }

.nav-link { 
text-decoration: none; color: var(--primary); font-weight: 600; 
font-size: 1.8rem; text-transform: uppercase; padding: 10px;
transition: transform 0.3s; display: inline-block;font-weight: bold;
}


}

/* --- RESPONSIVE 300px --- */
@media (max-width: 350px) {
.brand { font-size: 1.1rem; }
h1 { font-size: 1.6rem !important; }
h2 { font-size: 1.5rem; }
.price-card { padding: 20px 10px; }
.price-annual { font-size: 1.4rem; }
.card img { height: 180px; }
.contact-form-side { padding: 20px 15px; }
.btn-ws { font-size: 0.9rem; }

.nav-link { 
text-decoration: none; color: var(--primary); font-weight: 600; 
font-size: 1.8rem; text-transform: uppercase; padding: 10px;
transition: transform 0.3s; display: inline-block;font-weight: bold;
}


}

/* --- LÓGICA DE RESPONSIVE (CSS) --- */

/* Escritorio y Tablets (Pantallas de más de 600px) */
@media (min-width: 601px) {
    #chat-window {
        width: 380px;
        height: 550px;
        position: absolute;
        bottom: 80px;
        right: 0;
    }
}

/* Celulares (Pantallas de 300px a 600px) */
@media (max-width: 600px) {
    #chat-window {
        width: 85vw; /* Ocupa el 85% del ancho de la pantalla */
        height: 70vh; /* Ocupa el 70% del alto de la pantalla */
        position: fixed;
        bottom: 90px;
        right: 20px;
        left: 20px;
        margin: auto;
    }
    
    /* Si el celular es muy pequeño (320px) */
    #chat-widget-container {
        right: 10px;
        bottom: 10px;
    }
}

#chat-button:hover {
    transform: scale(1.1);
}

/* Temporarily disable the "PROXIMAMENTE" demo link in the Corporativo card
   - Visual: gray, muted, no shadow
   - Behaviour: not clickable (pointer-events: none) to indicate temporary disabled state */
.pricing-grid .price-card:last-child a.nav-link[href="#"] {
    color: #9aa0a6 !important;
    border-color: #dcdcdc !important;
    background-color: #f7f7f7 !important;
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
    text-decoration: none;
    transition: none !important;
}

.pricing-grid .price-card:last-child a.nav-link[href="#"]:hover {
    transform: none !important;
}

/* Subtle gray hover for 'VER DEMO' buttons inside pricing cards (external demo links) */
.price-card a.nav-link[href^="http"] {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--blue);
    transition: background-color 0.22s cubic-bezier(.2,.9,.2,1), border-color 0.18s ease, transform 0.18s ease, box-shadow 0.22s ease;
    position: relative; /* for shine pseudo-element */
    overflow: hidden;
}
.price-card a.nav-link[href^="http"]::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -60%;
    width: 40%;
    height: 120%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg) translateX(-100%);
    transition: transform 0.7s cubic-bezier(.2,.9,.2,1);
    pointer-events: none;
}
.price-card a.nav-link[href^="http"]:hover {
    background-color: rgba(0,0,0,0.06); /* slightly lighter highlight */
    border-color: #cfcfcf;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.price-card a.nav-link[href^="http"]:hover::before {
    transform: translateX(220%) skewX(-20deg);
}


