:root {
    --primary-color: #D52B1E;
    --secondary-color: #003087;
    --tertiary-color: #FFFFFF;
    --primary-hover: #ff4b40;
    --secondary-hover: #004ebd;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

/* Reseteo básico para html y body */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6,
.navbar-brand, .btn {
    font-family: 'Poppins', sans-serif;
}

/* Enlaces generales */
a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Botones */
.btn {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
}

.btn-primary {
    padding: 0.625rem 1.5rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--tertiary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
}

/* Helpers de color */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* Navbar Styles */
.navbar.fixed-top {
    background-color: var(--tertiary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--secondary-color);
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.nav-link {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    color: var(--secondary-color) !important;
}

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

.nav-link.btn-primary {
    background-color: var(--primary-color);
    color: var(--tertiary-color) !important;
    border: none;
    padding: 0.5rem 1.5rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--tertiary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)) center/cover fixed;
    margin-top: 56px;
    padding-top: 0;
}

.hero-section h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--tertiary-color);
}

.hero-section .lead {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--tertiary-color);
}

/* Servicios Section */
.services-section {
    background-color: var(--bg-light);
    position: relative;
    padding: 6rem 0;
    margin-bottom: 70px;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-light);
    transform: skewY(-2deg);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-section h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.services-section .text-primary {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.services-section .display-5 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.services-section .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards de servicios */
.services-section .card {
    background: var(--tertiary-color);
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.services-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.services-section .card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.services-section .card-text {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Iconos */
.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--tertiary-color);
}

.card:hover .icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
}

/* Sección de Contacto */
.contact-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
    position: relative;
    padding: 6rem 0;
    color: var(--tertiary-color);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
    transform: skewY(-2deg);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .text-primary {
    color: var(--tertiary-color) !important;
}

.contact-section .display-5,
.contact-section .lead {
    color: var(--tertiary-color);
}

.contact-section .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Formulario */
.contact-form {
    background: var(--tertiary-color);
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 48, 135, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* WhatsApp CTA Section */
.whatsapp-cta {
    background-color: var(--bg-light);
    margin-bottom: 70px;
}

.whatsapp-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.whatsapp-card:hover {
    transform: translateY(-5px);
}

.whatsapp-icon {
    width: 80px;
    height: 80px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon i {
    font-size: 40px;
    color: white;
}

.whatsapp-card h3 {
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.whatsapp-card .lead {
    color: var(--text-muted);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

/* Footer Styles */
.footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-top: 4rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 80px;
    height: auto;
}

.footer-title {
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    background-color: var(--bg-light);
    padding: 1rem 0;
}

.footer-bottom hr {
    border-color: rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.developer-credit {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.developer-credit:hover {
    color: var(--secondary-hover);
}

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

/* Responsive */
@media (max-width: 991px) {
    .logo {
        width: 35px;
        height: 35px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .logo-container {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

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

    .services-section {
        padding: 4rem 0;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper i {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem !important;
    }

    .whatsapp-icon {
        width: 60px;
        height: 60px;
    }

    .whatsapp-icon i {
        font-size: 30px;
    }

    .whatsapp-card h3 {
        font-size: 1.5rem;
    }

    .footer {
        padding-top: 2rem;
    }

    .footer-logo {
        width: 60px;
    }

    .footer-title {
        margin-top: 1.5rem;
    }

    .footer_info {
        align-items: initial;
        text-align: left;
    }

    .language-switch-container {
        margin: 10px 0;
    }
}

/* Estilos para el toggle de idioma */
.language-switch {
    border: 1px solid var(--primary-color) !important;
    border-radius: 50rem !important;
    overflow: hidden !important;
    height: 38px;
    display: inline-flex;
}

.btn-language {
    background: none;
    border: none;
    padding: 6px 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-language.active {
    background-color: var(--primary-color) !important;
    color: var(--tertiary-color) !important;
}

.btn-language:not(.active) {
    background-color: white !important;
    color: var(--primary-color) !important;
}