/* Custom CSS for 4Publicidad Landing Page */

/* Color Variables */
:root {
    --primary-red: #B00000;
    --secondary-yellow: #F0B800;
    --dark-text: #1A1A1A;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Typography */
body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-text);
}

/* Custom Bootstrap Button Overrides */
.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #8B0000;
    border-color: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(176, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-yellow);
    border-color: var(--secondary-yellow);
    color: var(--dark-text);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #D4A000;
    border-color: #D4A000;
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 184, 0, 0.3);
}

.btn-success {
    background-color: #25D366;
    border-color: #25D366;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-success:hover {
    background-color: #1DA851;
    border-color: #1DA851;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #FFFFFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.logo {
    max-width: 200px;
    height: auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-button {
    font-size: 1.1rem;
    padding: 15px 35px;
    margin-bottom: 1rem;
}

.contact-info {
    color: #666;
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--primary-red);
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px var(--shadow);
}

/* Problem-Solution Section */
.problem-solution-section {
    background-color: var(--white);
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.section-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.benefits-list {
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.benefit-icon {
    color: var(--secondary-yellow);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
}

.section-image img {
    border-radius: 15px;
    box-shadow: 0 15px 30px var(--shadow);
}

/* Social Proof Section */
.social-proof-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

/* Client Logos Carousel */
.clients-carousel {
    overflow: hidden;
    margin: 3rem 0;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200px * 32); /* 16 logos * 2 for seamless loop */
}

.client-logo {
    flex: 0 0 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
}

.client-logo img {
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 16));
    }
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 0;
}

.testimonial-author strong {
    color: var(--primary-red);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    background-color: var(--white);
    padding: 80px 0;
}

/* Pricing Table */
.pricing-table {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-plan {
    flex: 1;
    background: white;
    border: 2px solid #E5E5E5;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.pricing-plan.featured {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-header h4 {
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #F0F0F0;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--secondary-yellow);
    margin-right: 0.5rem;
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #8B0000 100%);
    color: white;
    padding: 80px 0;
}

.quote-section .section-title,
.quote-section .section-subtitle {
    color: white;
}

.quote-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.quote-form-container .section-title,
.quote-form-container .section-subtitle {
    color: var(--dark-text);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(176, 0, 0, 0.25);
}

.submit-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-alternatives {
    border-top: 1px solid #E5E5E5;
    padding-top: 2rem;
}

.contact-buttons .btn {
    margin: 0.25rem;
}

/* Footer */
.footer {
    background-color: var(--dark-text);
    color: white;
}

.footer-logo {
    max-width: 150px;
    height: auto;
}

.footer-contact i {
    color: var(--secondary-yellow);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .pricing-table {
        gap: 1rem;
    }
    
    .pricing-plan {
        padding: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .cta-buttons {
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-text {
        text-align: center;
    }
    
    .pricing-table {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .pricing-plan.featured {
        transform: none;
        order: -1;
    }
    
    .carousel-track {
        animation-duration: 20s;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .benefits-list {
        text-align: left;
        max-width: 400px;
        margin: 2rem auto;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .quote-form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .client-logo {
        flex: 0 0 140px;
        margin: 0 8px;
        height: 80px;
    }
    
    .client-logo img {
        max-width: 110px;
        max-height: 50px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .pricing-plan {
        padding: 1.5rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .contact-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 200px;
        margin: 0;
    }
    
    .footer-content,
    .footer-contact {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 1rem 0 2rem;
    }
    
    .logo {
        max-width: 150px;
        display: block;
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .quote-form-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .client-logo {
        flex: 0 0 120px;
        margin: 0 5px;
        height: 70px;
    }
    
    .client-logo img {
        max-width: 90px;
        max-height: 40px;
    }
    
    .carousel-track {
        animation-duration: 15s;
    }
    
    .benefit-item {
        font-size: 1rem;
    }
    
    .plan-price {
        font-size: 1.75rem;
    }
    
    .contact-info {
        font-size: 0.9rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

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

/* Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.card, .testimonial-card, .pricing-plan {
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.25);
}

/* Print Styles */
@media print {
    .hero-section,
    .quote-section {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        border: 2px solid black !important;
        background: white !important;
        color: black !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .testimonial-card:hover,
    .pricing-plan:hover,
    .client-logo:hover {
        transform: none;
    }
    
    .client-logo img:hover {
        filter: grayscale(100%);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .form-control {
        min-height: 48px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-track {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #2A2A2A;
        --white: #1A1A1A;
        --dark-text: #E5E5E5;
        --shadow: rgba(255, 255, 255, 0.1);
    }
    
    .quote-form-container {
        background: #2A2A2A;
        color: var(--dark-text);
    }
    
    .form-control {
        background: #3A3A3A;
        border-color: #4A4A4A;
        color: var(--dark-text);
    }
    
    .form-control:focus {
        background: #3A3A3A;
        border-color: var(--primary-red);
        color: var(--dark-text);
    }
    
    .testimonial-card,
    .pricing-plan,
    .client-logo {
        background: #2A2A2A;
        border-color: #4A4A4A;
    }
}

/* Performance optimizations */
.carousel-track {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-image img,
.section-image img {
    will-change: transform;
    backface-visibility: hidden;
}

/* Container max-width adjustments for better responsive behavior */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Additional utility classes for better spacing on mobile */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Ensure images are properly sized */
img {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Improved focus indicators for better accessibility */
.btn:focus-visible,
.form-control:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Better text contrast for accessibility */
.hero-subtitle,
.section-subtitle {
    color: #555;
}

@media (prefers-contrast: high) {
    .hero-subtitle,
    .section-subtitle {
        color: var(--dark-text);
    }
}
