/* Custom Properties / Variables */
:root {
    --bg-dark: #0d1a31;
    --bg-card: #1a2b4b;
    --text-main: #f0f4f8;
    --text-muted: #9baac8;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --cta-accent: #f8b100;
    --cta-glow: rgba(248, 177, 0, 0.4);
    --cta-hover: #ffc107;
    --secondary-accent: #facc15;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
    --border-color: rgba(255, 255, 255, 0.05);

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-accent {
    color: var(--accent);
}

.section-padding {
    padding: 5rem 0;
}

/* Utility Classes */
.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--cta-accent);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--cta-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--cta-glow);
    background-color: var(--cta-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--cta-accent);
    color: var(--cta-accent);
}

.btn-outline:hover {
    background: rgba(248, 177, 0, 0.1);
    transform: translateY(-2px);
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.hero-top {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 4rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: var(--accent);
}

.glow-2 {
    bottom: 0;
    right: -20%;
    background: var(--secondary-accent);
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 229, 255, 0.2);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    width: 100%;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.stat-icon {
    color: var(--secondary-accent);
}

.stat span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--secondary-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 229, 255, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.service-icon span {
    font-size: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.1;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(17, 30, 51, 0.9), rgba(7, 14, 27, 0.9));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cta-banner-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-banner-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cta-banner-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-card);
}

.gallery h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gallery p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 1rem;
    scroll-padding-inline: 1rem;
    width: 100%;

    /* Ocultar barra de rolagem */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

@media (min-width: 600px) {
    .gallery-item {
        flex: 0 0 calc(45% - 1rem);
        /* also peeks the next image on tablets */
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--cta-accent);
    color: var(--bg-dark);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--cta-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

/* Social Proof */
.social-proof {
    background-color: var(--bg-dark);
}

.social-proof h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.reviewer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.reviewer-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0px;
    line-height: 1.1;
}

.reviewer-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}


.google-rating {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.google-rating h3 {
    line-height: 1.1;
}

.stars {
    color: #fbbc04;
    display: flex;
    gap: 0.25rem;
}

.filled {
    font-variation-settings: 'FILL' 1;
}

/* Footer */
.footer {
    background-color: #050a14;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 350px;
    margin-inline: auto;
}

.footer h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
}

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.footer-contact a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-hover);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp.hidden {
    bottom: -80px;
    opacity: 0;
    pointer-events: none;
}

/* Animations Triggered by Scroll */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Base Responsive Styles - Mobile First Approach Fixes */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding-top: 2rem;
        min-height: auto;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-ctas {
        justify-content: center;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        max-width: 350px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat {
        align-items: center;
        text-align: center;
        min-width: 120px;
    }

    .stat-icon span {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-contact ul {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-top {
        margin-bottom: 1.5rem;
    }

    .logo img {
        height: 60px;
    }

    .carousel-btn {
        display: none;
        /* No mobile navegamos via touch/swipe */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}