/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --text-dark: #2c3e50;
    --text-medium: #7f8c8d;
    --text-light: #95a5a6;
    --bg-light: #ecf0f1;
    --bg-white: #ffffff;
    --border-color: #bdc3c7;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--primary-color);
}

@media (max-width: 1024px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transition: transform 0.3s ease;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .header.hidden {
        transform: translateY(-100%);
    }
    
    body {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    .nav-contact {
        display: none !important;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.logo-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-logo h1 {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .nav-logo h1 {
        white-space: normal;
        line-height: 1.2;
        overflow: visible;
        text-overflow: unset;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo span {
    color: var(--text-medium);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 5px;
        justify-content: center;
        max-width: 100vw;
        width: 100%;
    }
    
    .nav-logo {
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 90px;
        height: 90px;
    }
    
    .nav-logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-logo span {
        font-size: 0.75rem;
    }
}

.nav-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

.btn-call, .btn-whatsapp {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: max-content;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-call {
    background: #2980b9;
    color: white;
}

.btn-call:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(41, 128, 185, 0.3);
}

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

.btn-whatsapp:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(46, 204, 113, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(45deg, var(--primary-color), #2980b9);
    background-size: 200% 200%;
    animation: heroShift 8s ease-in-out infinite;
    padding: 5rem 0;
    overflow-x: hidden;
}

@keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero Animations */
.hero-title {
    animation: slideInDown 1s ease-out;
}

.hero-subtitle-anim {
    animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-description-anim {
    animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-buttons-anim {
    animation: slideInUp 1s ease-out 0.9s both;
}

.hero-card-anim {
    animation: slideInRight 1s ease-out 0.5s both;
}

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

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

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

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

/* List Animations */
.hero-list-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.hero-list-item:hover {
    transform: translateX(10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    font-weight: 600;
}

.hero-list-item:nth-child(1) { animation-delay: 1.2s; }
.hero-list-item:nth-child(2) { animation-delay: 1.4s; }
.hero-list-item:nth-child(3) { animation-delay: 1.6s; }
.hero-list-item:nth-child(4) { animation-delay: 1.8s; }

.skills-item {
    opacity: 0;
    animation: slideInFromLeft 0.5s ease-out forwards;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.skills-item:hover {
    transform: translateX(15px) scale(1.08);
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.skills-item:nth-child(1) { animation-delay: 0.1s; }
.skills-item:nth-child(2) { animation-delay: 0.2s; }
.skills-item:nth-child(3) { animation-delay: 0.3s; }
.skills-item:nth-child(4) { animation-delay: 0.4s; }
.skills-item:nth-child(5) { animation-delay: 0.5s; }
.skills-item:nth-child(6) { animation-delay: 0.6s; }
.skills-item:nth-child(7) { animation-delay: 0.7s; }

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.btn-primary:hover {
    box-shadow: 0 8px 16px rgba(41, 128, 185, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 16px rgba(46, 204, 113, 0.3);
}

.btn-primary {
    background: #2980b9;
    color: white;
}

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

.hero-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

@media (max-width: 768px) {
    .hero-card {
        text-align: left;
    }
}

.hero-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.hero-card ul {
    list-style: none;
}

.hero-card li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-weight: 400;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: var(--bg-white);
    overflow-x: hidden;
}

/* Brands Section */
.brands {
    padding: 3rem 0;
    background: var(--bg-light);
    overflow: hidden;
}

.brands h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.brands-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.brands-carousel {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    max-width: 100vw;
}

.brands-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: calc(210px * 20);
}

.brand-item {
    flex: 0 0 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    margin: 0 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 15px;
    transition: transform 0.4s ease-out;
    overflow: hidden;
}

.brand-item:hover {
    transform: scale(1.1);
}

.brand-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.brand-item img[alt="Hyundai"],
.brand-item img[alt="Sony"],
.brand-item img[alt="Challenger"],
.brand-item img[alt="Panasonic"] {
    max-width: 180%;
    max-height: 180%;
}

.brand-item:hover img {
    opacity: 1;
}

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



.services h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

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

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .service-icon img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .service-icon img {
        width: 120px;
        height: 120px;
    }
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--bg-white);
    overflow-x: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.expertise h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.expertise ul {
    list-style: none;
}

.expertise li {
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0.5rem 0;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.expertise li:nth-child(odd) {
    border-left-color: var(--secondary-color);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.stat-label {
    color: var(--text-medium);
    font-weight: 500;
}

/* Location Section */
.location {
    padding: 4rem 0;
    background: var(--bg-light);
    overflow-x: hidden;
}

.location h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.address {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.address:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.address p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.address a {
    color: var(--primary-color);
    text-decoration: none;
}

.address a:hover {
    text-decoration: underline;
}

.location-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.location-buttons .btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.location-buttons .btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.location-buttons .btn-primary:hover {
    box-shadow: 0 8px 16px rgba(41, 128, 185, 0.3);
}

.location-buttons .btn-secondary:hover {
    box-shadow: 0 8px 16px rgba(46, 204, 113, 0.3);
}

.location-buttons .btn:nth-child(2) {
    background: var(--secondary-color);
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
}

#map {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.1rem;
}

#map .map-icon {
    font-size: 4rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--bg-white);
}

.contact h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

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

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.contact-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-contact p {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.footer-info h3 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-contact a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .footer-contact a {
        color: white;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brands {
        padding: 2rem 0;
    }
    
    .brands h2 {
        font-size: 1.75rem;
    }
    
    .brand-item {
        flex: 0 0 150px;
        height: 60px;
        font-size: 1rem;
    }
    
    .service-icon {
        height: 80px;
    }
    
    .brands-track {
        width: calc(150px * 33);
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 26 - 260px));
        }
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .location-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .services h2,
    .about-text h2,
    .location h2,
    .contact h2 {
        font-size: 1.875rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.fade-up {
    transform: translateY(50px);
}

.scroll-reveal.fade-left {
    transform: translateX(-50px);
}

.scroll-reveal.fade-right {
    transform: translateX(50px);
}

.scroll-reveal.scale {
    transform: scale(0.9);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.scroll-reveal.delay-1 {
    transition-delay: 0.2s;
}

.scroll-reveal.delay-2 {
    transition-delay: 0.4s;
}

.scroll-reveal.delay-3 {
    transition-delay: 0.6s;
}

.scroll-reveal.delay-4 {
    transition-delay: 0.8s;
}

/* Print styles */
@media print {
    .header,
    .hero-buttons,
    .location-buttons,
    .contact {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        background: white;
    }
}