/* styles.css - Estilos principales para www.chorario.com */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --pin-color: #9c27b0;
    --qr-color: #4caf50;
    --oferta-color: #e74c3c;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;
    color: #333 !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><path fill="white" d="M0,500Q250,650,500,500Q750,350,1000,500L1000,1000L0,1000Z"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features Section */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: #333;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.feature-icon.qr {
    background: var(--qr-color);
}

.feature-icon.pin {
    background: var(--pin-color);
}

/* Demo Section */
.demo-section {
    background: var(--light-color);
    padding: 100px 0;
}

.demo-preview {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #ddd;
}

/* Pricing Section */
.pricing-card {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.pricing-card.popular {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

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

.price-period {
    color: #666;
    font-size: 0.9rem;
}

/* Ofertas */
.oferta-banner {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.precio-con-oferta {
    margin: 10px 0;
}

.precio-inflado {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #333;
}

.contact-form label {
    color: #333 !important;
    font-weight: 500;
}

.contact-form .form-text {
    color: #666 !important;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #333;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    color: #333;
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* News Section */
.news-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.news-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
    padding: 80px 0;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    border: 1px solid #eee;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary-color);
    font-weight: bold;
}

.star-rating {
    color: #f39c12;
    margin-bottom: 10px;
}

/* Modal para noticias */
.news-modal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.news-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.news-modal-body {
    padding: 2rem;
    line-height: 1.8;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Legal Pages */
.legal-content {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.legal-content h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Addon Pricing */
.addon-pricing {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--pin-color);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.addon-badge {
    background: var(--pin-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.qr-badge {
    background: var(--qr-color);
}

/* Price table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.price-table th, .price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.price-table tr:hover {
    background: #f8f9fa;
}

/* Mensajes de estado */
.alert-message {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

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

/* Custom icon for the website */
.website-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #3498db, #2c3e50);
    border-radius: 8px;
    position: relative;
    margin-right: 10px;
}

.website-icon::after {
    content: '⏰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular::before {
        right: -40px;
        font-size: 0.7rem;
    }
    
    .g-recaptcha > div > div {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

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

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

/* Custom colors for text */
.text-dark-custom {
    color: #333 !important;
}

/* reCAPTCHA CSS */
.g-recaptcha {
    margin-bottom: 20px;
    display: inline-block;
}
.g-recaptcha > div > div {
    margin: 0 auto;
}
.recaptcha-error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    display: none;
}

/* Estilos para ofertas y contador */
.oferta-banner {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(238, 90, 36, 0.3);
    border: 3px solid #ffd166;
    position: relative;
    overflow: hidden;
}

.oferta-banner::before {
    content: '🔥';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 60px;
    opacity: 0.3;
    transform: rotate(15deg);
}

.contador-oferta {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.contador-oferta .contador-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contador-oferta .contador-numero {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.contador-oferta .contador-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 5px;
}

/* Animación para oferta que está por terminar */
@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.oferta-por-terminar {
    animation: pulse-warning 2s infinite;
    background: linear-gradient(45deg, #ff9800, #ff5722);
}

/* Precios con oferta */
.precio-con-oferta {
    margin: 10px 0;
}

.precio-inflado {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Badge para ofertas */
.badge-oferta {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* Responsive para contador */
@media (max-width: 768px) {
    .contador-oferta {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .contador-oferta .contador-item {
        min-width: 70px;
        padding: 8px 10px;
    }
    
    .contador-oferta .contador-numero {
        font-size: 22px;
    }
    
    .oferta-banner {
        padding: 15px;
    }
}

/* =============================== */
/* ESTILOS PARA BLOG */
/* =============================== */
.blog-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-image-container {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.blog-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.blog-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 2;
}

.blog-content {
    padding: 25px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

.reading-time {
    display: flex;
    align-items: center;
}

.featured-badge {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.blog-read-more {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Modal de artículo de blog */
.blog-modal .modal-content {
    border-radius: 15px;
    border: none;
}

.blog-modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border-bottom: none;
    padding: 25px 30px;
}

.blog-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.blog-modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.blog-modal-body h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
}

.blog-modal-body .lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.blog-modal-body h2, 
.blog-modal-body h3, 
.blog-modal-body h4 {
    color: #3498db;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-modal-body p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.blog-modal-body ul, 
.blog-modal-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-image-container {
        height: 150px;
    }
    
    .blog-title {
        font-size: 1.1rem;
        height: auto;
        min-height: 60px;
    }
    
    .blog-excerpt {
        height: auto;
        min-height: 70px;
    }
    
    .blog-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .blog-card {
        margin-bottom: 20px;
    }
}