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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Header Sticky */
.header {
    position: fixed;
    top: -70px;
    left: 0;
    right: 0;
    background: #0c0c0c;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    top: 0 !important;
    background: #0c0c0c;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    min-height: 100vh;
}

/* Landing Page Styles */
.landing-page {
    width: 100%;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-excerpt {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content {
    padding: 4rem 0;
}

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

.content h1, .content h2, .content h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    background: #f8fafc;
    padding: 4rem 0;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.contact-form h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: left;
    font-family: serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.submit-button {
    width: 100%;
    background: #1f2937;
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #a7f3d0;
    font-weight: 500;
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #fecaca;
    font-weight: 500;
}

/* Error messages for form validation */
.form-group .error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    border: 1px solid #fecaca;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
}

/* Form input error state */
.form-group input:invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin, .spinner {
    animation: spin 1s linear infinite;
}

/* Submit button disabled state */
.submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-button:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Benefits Section */
.benefits-section {
    background: #374151;
    padding: 2rem;
    border-radius: 12px;
    color: white;
}

.benefits-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.benefit-item p {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

/* Models Swiper Section */
.models-swiper {
    background: white;
    padding: 4rem 0;
}

.models-swiper h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

.swiper-container {
    position: relative;
    padding: 0;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* Swiper Pagination */
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #1f2937;
    transform: scale(1.2);
}

.cta {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    padding: 4rem 0;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-section p, .footer-section a {
    color: #d1d5db;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #60a5fa;
}

.sucursal {
    margin-bottom: 1.5rem;
}

.sucursal h4 {
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sucursal p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #d1d5db;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-link.facebook:hover {
    color: #1877f2;
}

.social-link.instagram:hover {
    color: #e4405f;
}

.social-link.website:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.error {
    text-align: center;
    padding: 4rem 2rem;
}

.error h1 {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
        max-width: 150px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .hero-content {
        position: absolute;
        top: 5vh;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: none !important;
        padding: 0 20px;
        box-sizing: border-box;
        margin: 0;
    }
    
    .hero-content h1,
    .hero-content h2,
    .hero-content p {
        max-width: none !important;
        width: 100%;
    }
    
    .header {
        position: fixed !important;
        top: -70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: none !important;
    }
    
    .nav-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
        width: 100% !important;
    }

    .content {
        padding: 2rem 0;
    }

    .cta {
        padding: 2rem 0;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

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

    .form-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefits-section {
        padding: 1.5rem;
    }

    .benefits-section h3 {
        font-size: 1.25rem;
    }

    .benefits-grid {
        gap: 1.5rem;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
    }

    .models-swiper {
        padding: 2rem 0;
    }

    .models-swiper h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .swiper-slide {
        height: 200px!important;
    }

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

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .contact-form {
        padding: 2rem 0;
    }

    .form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .contact-form h2 {
        font-size: 1.5rem;
    }
}

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

    .nav-container {
        padding: 0 15px;
    }

    .logo-image {
        height: 35px;
        max-width: 120px;
    }

    .container {
        padding: 0 15px;
    }

    .swiper-slide {
        height: 250px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 1rem;
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.modal-body select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-footer {
    margin-top: 2rem;
}

.modal-footer .submit-button {
    width: 100%;
}

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

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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