/* ==================== VARIABLES Y ESTILOS GLOBALES ==================== */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #FF6B35;
    --dark-bg: #0F172A;
    --light-bg: #F8FAFC;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ==================== NAVBAR ==================== */

#navbar {
    background-color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background-color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .navbar-brand,
#navbar.scrolled .nav-link,
#navbar.scrolled .brand-name,
#navbar.scrolled .brand-subtitle {
    color: var(--text-dark) !important;
}

#navbar.scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #E55A24;
    border-color: #E55A24;
}

/* ==================== HERO SECTION ==================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.7s ease-out;
}

.badge-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: inline-block;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    animation: slideDown 0.8s ease-out 0.15s both;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 500px;
    animation: slideDown 0.8s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideDown 0.8s ease-out 0.5s both;
}

.hero-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
}

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    animation: slideDown 0.8s ease-out 0.7s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-indicator {
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: 1.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

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

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}

/* ==================== SECCIONES ==================== */

.section-badge {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== SERVICE CARDS ==================== */

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-image {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    transition: background-color 0.3s ease;
}

.service-card:hover .service-overlay {
    background-color: rgba(15, 23, 42, 0.3);
}

.service-icon {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.5rem;
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.service-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    display: inline-block;
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    color: #E55A24;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* ==================== HIGHLIGHTS STRIP ==================== */

.highlights-strip {
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.highlight-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

.highlight-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==================== TESTIMONIOS ==================== */

.testimonial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.stars {
    color: #FCD34D;
    font-size: 1rem;
}

.testimonial-card p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

/* ==================== FORMULARIO CONTACTO ==================== */

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-info {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
}

.contact-info h5 {
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-light);
    margin: 0;
}

/* ==================== FOOTER ==================== */

footer {
    background-color: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        margin-top: 56px;
    }
}

/* ==================== SCROLLBAR ==================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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