/* Custom CSS for Cinecalidad Website */

/* CSS Variables */
:root {
    --primary-color: #e50914;
    --secondary-color: #221f1f;
    --accent-color: #f5c842;
    --dark-color: #141414;
    --light-color: #ffffff;
    --gray-color: #666666;
    --gradient-primary: linear-gradient(135deg, #e50914, #ff6b35);
    --gradient-secondary: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-accent: linear-gradient(135deg, #f093fb, #f5576c);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Styles */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-heavy);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color) !important;
    text-decoration: none;
}

.brand-text {
    background: linear-gradient(45deg, #f5c842, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.navbar-nav .nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-secondary);
    color: var(--light-color);
    padding: 120px 0 80px;
    margin-top: 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 width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #f5c842, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

/* Main Content */
main {
    background: var(--light-color);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-heavy);
}

.content-section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

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

/* Cards and Components */
.features-card {
    background: var(--gradient-secondary);
    color: var(--light-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    height: 100%;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.genre-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.genre-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.series-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.series-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.series-category ul {
    list-style: none;
    padding: 0;
}

.series-category li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.series-category li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Steps Section */
.step-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: var(--light-color);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.step-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 3px solid rgba(255,255,255,0.3);
}

.step-card h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Additional Info */
.additional-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--light-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.additional-info h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* FAQ Section */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.accordion-button {
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-accent);
    color: var(--light-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    background: #f8f9fa;
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Contact Section */
.contact-card {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.community-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
}

/* Buttons */
.action-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--light-color);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--light-color);
    background: var(--gradient-accent);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--gradient-primary) !important;
    margin-top: 3rem;
}

.footer h5, .footer h6 {
    color: var(--accent-color);
    font-weight: 600;
}

.footer .text-light {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .text-light:hover {
    color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-image img {
        transform: none;
        margin-top: 2rem;
    }
    
    .step-card {
        margin-bottom: 1rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .additional-info {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .action-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.shadow-custom {
    box-shadow: var(--shadow-heavy);
}

.border-radius-lg {
    border-radius: 20px;
}

.border-radius-xl {
    border-radius: 30px;
}

/* Terms and Privacy Page Styles */
.terms-content, .privacy-content {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.terms-section, .privacy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.terms-section:last-child, .privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.terms-section h2, .privacy-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.terms-section h3, .privacy-section h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.last-updated {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Contact Form Styles */
.contact-form-container {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.contact-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.contact-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.contact-form .form-control, .contact-form .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

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

.quick-faq {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
}

.faq-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
}

.additional-contact-info .info-card {
    background: var(--gradient-secondary);
    color: var(--light-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Privacy Page Specific Styles */
.usage-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.usage-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.usage-card ul {
    list-style: none;
    padding: 0;
}

.usage-card li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.usage-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cookies-table {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.cookie-type {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.cookie-type h5 {
    margin-bottom: 0.5rem;
}

.sharing-scenarios {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.scenario {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
}

.scenario h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.security-measures {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.measure {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    border-left: 4px solid var(--accent-color);
}

.measure h5 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.measure ul {
    list-style: none;
    padding: 0;
}

.measure li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.measure li::before {
    content: '🔒';
    position: absolute;
    left: 0;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.right-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.right-item h5 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.retention-table {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.retention-table h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.retention-table ul {
    list-style: none;
    padding: 0;
}

.retention-table li {
    background: #fff;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.contact-privacy {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.contact-method {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.contact-method h5 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.thank-you-section {
    background: var(--gradient-secondary);
    color: var(--light-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.thank-you-section h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Responsive adjustments for terms and privacy pages */
@media (max-width: 768px) {
    .terms-content, .privacy-content {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-section h2, .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .quick-faq {
        padding: 2rem;
    }
    
    .thank-you-section {
        padding: 2rem;
    }
}
