/* style.css - Actualizado */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --whatsapp-color: #25D366;
    --correo-color: #ea4335;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f1f5f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 5px rgba(37, 99, 235, 0.3));
}

.logo span:first-of-type {
    background: linear-gradient(135deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: gradientFlow 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Versión hover del logo */
.logo:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.logo:hover i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info i {
    color: var(--primary-color);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
}

/* Cotizador Section */
.cotizador-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
}

.cotizador-section h1 {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cotizador-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Pasos Indicador */
.pasos-indicador {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 10px;
    background-color: var(--light-color);
    border-radius: 50px;
}

.paso {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.paso.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.paso-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.paso-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dominio Input */
.dominio-input-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.dominio-input-group input {
    flex: 2;
    min-width: 200px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dominio-input-group select {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dominio-input-group button {
    padding: 15px 25px;
    white-space: nowrap;
}

.dominio-input-group input:focus,
.dominio-input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dominio-info,
.dominio-error {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    animation: slideIn 0.5s ease;
}

.dominio-info {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.dominio-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.dominio-disponibilidad,
.dominio-precio {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.dominio-sugerencias {
    margin: 20px 0;
    padding: 15px;
    background-color: #eff6ff;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.sugerencias-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.sugerencia-item {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sugerencia-item:hover {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
    transform: translateY(-2px);
}

.sugerencia-item .precio {
    color: var(--primary-color);
    font-weight: 600;
}

/* Botones */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
    flex: 1;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-correo {
    background-color: var(--correo-color);
    color: white;
    flex: 1;
}

.btn-correo:hover {
    background-color: #c5221f;
    transform: translateY(-2px);
}

.btn-editar {
    background-color: var(--gray-color);
    color: white;
}

.btn-editar:hover {
    background-color: var(--dark-color);
}

/* Sliders */
.sliders-container {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.slider-item {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.slider-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.slider-item label i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.slider-item input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.slider-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.slider-item input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.precio-slider {
    margin-top: 10px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Correo Planes */
.correo-planes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.plan-correo {
    position: relative;
}

.plan-correo input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-correo label {
    display: block;
    padding: 20px;
    background-color: var(--light-color);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.plan-correo label i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--gray-color);
}

.plan-correo label h3 {
    margin: 10px 0;
    font-size: 1.1rem;
}

.plan-correo label p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 5px 0;
}

.plan-correo label .precio-plan {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.plan-correo input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.plan-correo input[type="radio"]:checked + label i {
    color: var(--primary-color);
}

.usuarios-control {
    margin: 20px 0;
    text-align: center;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-usuario {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-usuario:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.input-group input {
    width: 80px;
    text-align: center;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
}

.correo-subtotal {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Métodos de envío */
.metodos-envio {
    margin: 30px 0;
    text-align: center;
}

.opciones-envio {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Resumen Lateral */
.resumen-lateral {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    height: fit-content;
    border: 1px solid #e2e8f0;
}

.resumen-lateral h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resumen-lateral h3 i {
    color: var(--primary-color);
}

.resumen-items {
    margin-bottom: 20px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.item-info {
    flex: 1;
}

.item-nombre {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.item-nombre i {
    color: var(--primary-color);
    margin-right: 5px;
}

.item-detalle {
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.4;
}

#resumen-hosting-detalle {
    display: block;
    margin-top: 3px;
}

.item-precio {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 15px;
    white-space: nowrap;
}

.resumen-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    border-top: 2px solid var(--primary-color);
}

.resumen-acciones {
    margin: 15px 0;
}

.btn-editar-resumen {
    width: 100%;
    justify-content: center;
}

.resumen-igv {
    text-align: right;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Alertas */
.alerta {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.alerta.mostrar {
    transform: translateX(0);
}

.alerta-success {
    background-color: var(--success-color);
}

.alerta-warning {
    background-color: var(--warning-color);
}

.alerta-error {
    background-color: var(--danger-color);
}

/* Características Section */
.caracteristicas-section {
    padding: 80px 0;
    background-color: white;
}

.caracteristicas-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.card p {
    color: var(--gray-color);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer .logo {
    color: white;
    margin-bottom: 15px;
}

.footer .logo i {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer .logo span:first-of-type {
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer .logo .highlight {
    background: linear-gradient(135deg, #60a5fa, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .cotizador-container {
        grid-template-columns: 1fr;
    }
    
    .resumen-lateral {
        position: static;
        order: -1;
    }
    
    .contact-info {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .correo-planes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dominio-input-group {
        flex-direction: column;
    }
    
    .dominio-input-group input,
    .dominio-input-group select,
    .dominio-input-group button {
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .opciones-envio {
        flex-direction: column;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* style.css - Añade o actualiza esta sección de alertas */
.alerta {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 25px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alerta.mostrar {
    transform: translateX(0);
}

.alerta-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.alerta-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.alerta-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.alerta-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.alerta i {
    font-size: 24px;
    color: white;
}

.alerta .contenido-alerta {
    flex: 1;
}

.alerta .titulo-alerta {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.alerta .mensaje-alerta {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.alerta .cerrar-alerta {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.alerta .cerrar-alerta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Botón de reinicio en resumen */
.btn-reiniciar-resumen {
    background: none;
    border: 1px solid #e2e8f0;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-reiniciar-resumen:hover {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.btn-reiniciar-resumen i {
    font-size: 12px;
}