/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    border: none;
    font-family: inherit;
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 1.5rem;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 14px;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #764ba2;
    font-size: 24px;
    font-weight: 700;
}

.logo p {
    color: #666;
    font-size: 14px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    color: white;
    text-align: center;
    will-change: transform;
}

/* Performance Optimizations */
/* Lazy loading for images */
img {
    loading: lazy;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Optimize animations */
.btn-primary, .btn-secondary, .btn-service, .btn-cta, .btn-urgent {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce paint and layout thrashing */
.whatsapp-float {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize font loading */
@font-face {
    font-family: 'Poppins';
    font-display: swap;
}

/* Notification Bar */
.notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 0;
    z-index: 1001;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.notification-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.notification-time {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: popIn 0.3s ease-out;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

.popup-countdown {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    animation: pulse 1s infinite;
}

.btn-popup {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin: 20px 0;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.btn-popup:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.popup-guarantee {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

/* Social Proof Popup */
.social-proof {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 300px;
    animation: slideInLeft 0.5s ease-out;
    border-left: 4px solid #25d366;
}

.proof-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.proof-text {
    flex: 1;
    font-size: 12px;
}

.proof-text strong {
    color: #333;
    font-weight: 600;
}

.proof-rating {
    font-size: 12px;
}

/* Enhanced Footer */
.footer-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
}

.footer-stat {
    text-align: center;
}

.footer-stat strong {
    display: block;
    font-size: 24px;
    color: #ff6b35;
    font-weight: bold;
}

.footer-stat span {
    font-size: 12px;
    color: #ccc;
}

.footer-urgency {
    margin-top: 10px;
    text-align: center;
}

.urgency-text {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.footer-disclaimer {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Mobile Optimizations for New Elements */
@media (max-width: 768px) {
    .notification-content {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .popup-content {
        margin: 10px;
        padding: 20px;
    }
    
    .social-proof {
        bottom: 100px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .footer-stats {
        gap: 15px;
    }
    
    .footer-stat strong {
        font-size: 20px;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFD700;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #764ba2;
}

.hero-image {
    margin-top: 30px;
}

.maestra-img {
    max-width: 300px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    padding: 20px 0;
    text-align: center;
    color: white;
}

.urgency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.urgency-content i {
    font-size: 24px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.btn-urgent {
    background: white;
    color: #FF6B6B;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-urgent:hover {
    transform: scale(1.05);
}

/* Success Stories Section */
.success-stories {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.success-stories h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: #e0e7ff;
    font-weight: 300;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.story-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.story-icon {
    font-size: 2.5rem;
}

.story-time {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.story-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.story-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.client-name {
    font-weight: bold;
    color: #2c3e50;
}

.rating {
    font-size: 1.2rem;
}

.success-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: #e0e7ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #764ba2;
    margin-bottom: 50px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #764ba2;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #764ba2;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-service {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.stars {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FFD700;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1rem;
}

.client-name {
    color: #764ba2;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.benefit i {
    color: #25D366;
    font-size: 1.2rem;
}

.btn-cta {
    background: #25D366;
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 35px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.btn-cta:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-info h3 {
    margin-bottom: 10px;
    color: #FFD700;
}

.btn-footer {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-footer:hover {
    background: #128C7E;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .urgency-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .urgency-content span {
        font-size: 0.9rem;
    }
    
    .btn-urgent {
        width: 100%;
        padding: 12px 20px;
    }
    
    /* Success Stories Mobile */
    .success-stories h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .story-card {
        padding: 20px;
        margin: 0;
    }
    
    .story-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .story-time {
        align-self: center;
    }
    
    .story-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .success-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .stat {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Service Cards Mobile */
    .service-card {
        padding: 20px;
        text-align: center;
    }
    
    .btn-service {
        width: 100%;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    /* CTA Section Mobile */
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* WhatsApp Float Button Mobile Fix */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        padding: 15px;
        border-radius: 50%;
        z-index: 9999;
        position: fixed;
    }
    
    .whatsapp-float i {
        font-size: 1.8rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    /* Header Mobile */
    .header {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .btn-whatsapp {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer Mobile */
    .footer {
        text-align: center;
        padding: 30px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .btn-footer {
        width: 100%;
        max-width: 300px;
    }
}

/* Touch-friendly styles */
@media (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-secondary, .btn-service, .btn-cta, .btn-urgent, .whatsapp-float {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
    }
    
    .whatsapp-float {
        padding: 18px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services, .testimonials, .cta-section {
        padding: 60px 0;
    }
    
    .service-card, .testimonial-card {
        padding: 20px;
    }
    
    .success-stories h2 {
        font-size: 1.8rem;
    }
    
    .story-card {
        padding: 15px;
    }
    
    .story-card h3 {
        font-size: 1.2rem;
    }
    
    .urgency-content span {
        font-size: 0.8rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        padding: 15px;
    }
    
    .whatsapp-float i {
        font-size: 1.6rem;
    }
    
    /* Ensure buttons are touch-friendly */
    .btn-primary, .btn-secondary, .btn-service, .btn-cta, .btn-urgent {
        min-height: 50px;
        font-size: 0.9rem;
        padding: 15px 20px;
    }
}