/* --- 1. REGLAS GENERALES Y CONFIGURACIÓN BASE --- */
*{ 
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html {
    scroll-behavior: smooth;
}
body{
    font-family: Arial, sans-serif;
    line-height:1.6;
    color:#333;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section {
    padding:70px 0;
}

section h2 {
    text-align:center;
    margin-bottom:40px;
}

.titulos {
	margin: 10px;
}

.centrado {
	text-align: center;
	color: #4aa9e9;
	margin: 0px;
	padding-bottom: 10px;
}

.services {
	padding: 40px 0;
}

/* --- 2. ENCABEZADO (HEADER) --- */
header {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    padding:10px 0;
    transition:.3s;
    background:rgba(0,0,0,.30);
    backdrop-filter:blur(8px);
}

header.scrolled {
    background:#111;
	color: #FFF;
    box-shadow:0 3px 20px rgba(0,0,0,.08);
}

.header-container {
    max-width:1200px;
    margin:auto;
    padding:0px;
    display:flex;
    align-items:center;
}

.logo img {
    height:55px;
}

/* Menú de Navegación */
nav ul {
	margin: 15px;
    display:flex;
    gap:20px;
    list-style:none;
}

nav a {
    text-decoration:none;
    color:#fff;
    font-weight:600;
}

header.scrolled nav a {
    color:#fff;
}

/* Área de Teléfonos */
.telefono {
    margin: 0px;
    text-align:right;
	white-space: nowrap;
	padding: 0px;
	float: right;
    margin-left: auto; /* Empuja los teléfonos a la derecha en PC */
}

.telefono a {
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:1.1rem;
}

header.scrolled .telefono a {
    color:#FFF;
}

/* Botón de Hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
}

/* --- 3. SECCIÓN HERO (PORTADA PRINCIPAL) --- */
.hero {
    background: linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
    url('imagenes/multifuncional.png') center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h2, .hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.btn {
    display:inline-block;
    background:#2563eb;
    color:white;
    padding:12px 25px;
    text-decoration:none;
    border-radius:5px;
    margin-top:20px;
}

.btn-wsp-seccion {
	background-color: #25d366;
	color: white;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	display: inline-block;
	font-weight: bold;
	margin-top: 15px;
}

.btn-wsp-seccion:hover {
	background-color: #128c7e;
}

/* --- 4. NUEVAS TARJETA DE PRODUCTOS MODERNAS (ESTILO SAAS) --- */
.cards-container-moderno {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.card-moderna {
    background-color: transparent;
    perspective: 1000px;
    width: 320px;
    min-height: 520px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Estado de volteo mediante Javascript */
.card-moderna.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    top: 0;
    left: 0;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 30px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.card-front {
    position: relative;
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

/* Contenido de las tarjetas */
.plan-titulo {
    font-size: 1.4rem;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.plan-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.precio-contenedor {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.precio-antes {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.precio-ahora {
    font-size: 1.6rem;
    color: #0f172a;
    font-weight: 800;
}

.precio-ahora small {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
}

.plan-img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin: auto auto 25px auto;
}

.card-badge-descuento {
    position: absolute;
    top: 7px;
    right: 5px;
    background-color: #fef2f2;
    color: #ef4444;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 9999px;
}

/* Botonera de Tarjetas */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-moderno-wsp {
    background-color: #e6fbf1;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-moderno-wsp:hover {
    background-color: #25d366;
    color: #fff;
    border-color: #25d366;
}

.btn-moderno-specs, .btn-moderno-volver {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 11px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-moderno-specs:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

/* --- 5. ENFOQUE DEL PRODUCTO DESTACADO (PLAN START) --- */
.card-destacada .card-front {
    border: 2px solid #6366f1;
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
    /*transform: scale(1.03);*/
}

.badge-destacado {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6366f1;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
}

.btn-destacado-wsp {
    background-color: #6366f1;
    color: #ffffff;
    border: none;
}

.btn-destacado-wsp:hover {
    background-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Cara Trasera Especificaciones */
.plan-titulo-back {
    font-size: 1.2rem;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.specs-lista {
    flex-grow: 1;
    text-align: left;
}

.specs-lista h4 {
    font-size: 0.95rem;
    color: #6366f1;
    margin: 0 0 12px 0;
}

.specs-lista ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-lista li {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 12px;
    gap: 10px;
}

.specs-lista li i {
    color: #6366f1;
    font-size: 1rem;
    width: 16px;
}

/* --- 6. SECCIÓN BENEFICIOS Y ANCIANOS COMPONENTES --- */
.benefits {
    background:#f4f4f4;
}

footer {
    background:#111827;
    color:white;
    text-align:center;
    padding:20px;
}

/* --- 7. MINI-CHAT FLOTANTE CON CAPTURA DE CORREO --- */
.wsp-chat-contenedor {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.wsp-flotante-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.wsp-flotante-btn:hover {
    transform: scale(1.1);
}

.wsp-mini-chat {
    display: none;
    width: 280px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    overflow: hidden;
    animation: fadeInWsp 0.3s ease-in-out;
}

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

.wsp-chat-header {
    background-color: #075e54;
    color: #fff;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wsp-cerrar-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.wsp-chat-body {
    padding: 15px;
    background-color: #f0f2f5;
}

.wsp-chat-body p {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    color: #4a4a4a;
    line-height: 1.4;
}

.wsp-chat-body input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.wsp-enviar-btn {
    width: 100%;
    background-color: #25d366;
    color: #fff;
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.wsp-enviar-btn:hover {
    background-color: #128c7e;
}
.texto-color-gradiente {
    background: linear-gradient(135deg, #ff007f, #7928ca, #0070f3, #00dfd8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brilloGradiente 4s linear infinite;
    display: inline-block;
}

/* Animación sutil para que el degradado se mueva y sea más llamativo */
@keyframes brilloGradiente {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 8. REGLAS DE RESPONSIVIDAD (MÓVIL Y TABLET) --- */
@media (max-width: 768px) {
    /* Ajuste Estructural de la Cabecera Móvil */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 15px 20px;
        flex-wrap: wrap; 
    }

    .logo {
        order: 1;
    }
    
    .logo img {
        height: 45px;
    }

    .menu-toggle {
        display: flex; 
        order: 2;
    }
	#menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111; 
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        z-index: 999;
        order: 4; 
    }

    #menu.active {
        display: block;
    }

    #menu ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    #menu ul li {
        width: 100%;
    }

    #menu ul li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #222;
        color: #fff;
        text-align: center;
    }

    /* Corrección de Barra de Teléfonos Transparente */
    .telefono {
        order: 3; 
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px; 
        padding: 10px 0 5px 0;
        background-color: transparent !important; 
        font-size: 0.95rem;
        float: none;
        text-align: center;
    }

    .telefono a {
        font-size: 0.95rem;
    }

    /* Ajuste del Hero para empujar el título por debajo de la cabecera */
    .hero {
        padding-top: 190px !important; 
        padding-bottom: 60px !important;
        text-align: center;
    }

    .hero h2, .hero h1 {
        font-size: 1.7rem !important; 
        line-height: 1.4 !important;   
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .hero p {
        font-size: 1rem !important;
        padding: 0 20px;
        margin-bottom: 25px;
    }

    /* Tarjetas en Móvil */
    .card-destacada .card-front {
        transform: scale(1); /* Quitamos zoom en móvil para evitar desborde lateral */
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .wsp-mini-chat {
        width: 250px;
        right: 10px;
    }
}
.badge-sistema {
    align-self: center; /* Centra la etiqueta horizontalmente */
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 15px; /* Da respiro antes de la imagen */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

/* Estilo para equipos Blanco y Negro */
.sistema-bn {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Estilo para equipos a Color */
.sistema-color {
    background: linear-gradient(135deg, #fff5f5, #f0f5ff);
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.05);
}

.sistema-color i {
    background: linear-gradient(135deg, #ff007f, #7928ca, #0070f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.separador-flex-completo {
    width: 100%;        /* Fuerza a ocupar todo el ancho del contenedor */
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;    /* Espaciado vertical */
}

/* Las líneas laterales adaptables */
.separador-flex-completo::before,
.separador-flex-completo::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6; /* Línea gris sutil */
}

/* Espaciado para el texto */
.separador-flex-completo span {
    padding: 0 15px;      /* Espacio seguro a los lados del texto */
    color: #6c757d;       /* Color de texto gris */
    font-weight: bold;    /* Texto resaltado */
    text-transform: uppercase;
    white-space: nowrap;  /* Evita que el texto se rompa en dos líneas */
}
