/* ===== RESET Y ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* ===== UTILIDADES ===== */
.gradient-bg {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.hero-bg {
    background: linear-gradient(rgba(220, 38, 38, 0.9), rgba(153, 27, 27, 0.9)), url('img/sam-moghadam-khamseh-kvmdsTrGOBM-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.logo-text-primary {
    color: #1f2937;
}

.logo-text-accent {
    color: #dc2626;
}

/* ===== NAVEGACIÓN ===== */
.nav-desktop {
    display: none;
}

.nav-desktop a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-desktop a:hover {
    color: #dc2626;
}

.nav-desktop .cta-button {
    background: #dc2626;
    color: white;
    padding: 8px 24px;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.nav-desktop .cta-button:hover {
    background: #b91c1c;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    margin-top: 16px;
    padding-bottom: 16px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.mobile-menu a:hover {
    color: #dc2626;
}

.mobile-menu .cta-button {
    background: #dc2626;
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.mobile-menu .cta-button:hover {
    background: #b91c1c;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero-badge {
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title-accent {
    display: block;
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    color: #e5e7eb;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.hero-button {
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-button-primary {
    background: #dc2626;
    color: white;
}

.hero-button-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.hero-button-secondary {
    background: #10b981;
    color: white;
}

.hero-button-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 512px;
    margin: 0 auto;
}

/* ===== SERVICIOS ===== */
.services {
    background: #f9fafb;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1);
    transform: translateY(-4px);
    border-color: #dc2626;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
}

/* ===== VENTAJAS ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.advantage-item {
    text-align: center;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2rem;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.advantage-description {
    color: #6b7280;
    line-height: 1.6;
}

/* ===== PROCESO ===== */
.process {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}

.process .section-subtitle {
    color: white;
}

.process-video-container {
    max-width: 800px;
    margin: 0 auto 64px;
    padding: 0 16px;
}

.process-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: white;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.process-item {
    text-align: center;
}

.process-number {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: bold;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.process-description {
    color: #e5e7eb;
    line-height: 1.6;
}

/* ===== TESTIMONIOS ===== */
.testimonials {
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.testimonial-card:hover {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
    font-weight: bold;
}

.testimonial-author {
    font-weight: 600;
    color: #1f2937;
}

.testimonial-role {
    color: #6b7280;
    font-size: 0.875rem;
}

.testimonial-text {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-rating {
    display: flex;
    color: #fbbf24;
    gap: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    text-align: center;
}

.cta-section .section-subtitle {
    color: white;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.cta-button {
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button-primary {
    background: #10b981;
    color: white;
}

.cta-button-primary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.cta-button-secondary {
    background: white;
    color: #dc2626;
}

.cta-button-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
    background: #f9fafb;
}

.contact-form {
    display: grid;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    font-weight: 600;
    color: #374151;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: #1f2937;
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-brand-text-primary {
    color: white;
}

.footer-brand-text-accent {
    color: #dc2626;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #dc2626;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f9fafb;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.footer-contact-item i {
    color: #dc2626;
    margin-right: 8px;
    width: 16px;
}

.footer-divider {
    border-top: 1px solid #374151;
    padding-top: 32px;
    text-align: center;
    color: #9ca3af;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 32px;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-video-container {
        max-width: 900px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: row;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== ESTADOS DE CARGA ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== UTILIDADES ADICIONALES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

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

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

/* ===== MAP SECTION ===== */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}