:root {
    --primary-blue: #0075A3;
    --dark-blue: #004a68;
    --light-gray: #f8f9fa;
    --dark-text: #333333;
    --white: #ffffff;
    --transition-smooth: all 0.3s ease;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

* {
    box-sizing: border-box;
}

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

img,
iframe {
    max-width: 100%;
}

.container,
.container-fluid,
.row,
section,
header,
footer,
main {
    max-width: 100%;
}

/* Header Superior */
.top-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-header a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    transition: var(--transition-smooth);
}

.top-header a:hover {
    opacity: 0.8;
}

.social-icons a {
    margin-left: 10px;
    font-size: 1.1rem;
}

footer .social-icons a {
    display: inline-block !important;
    margin-bottom: 0 !important;
    margin-right: 15px;
}

.btn-contact-top {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 2px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-contact-top:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Header Sticky Wrapper */
header.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--white);
    transition: var(--transition-smooth);
}

.navbar {
    transition: var(--transition-smooth);
    padding: 15px 0;
}

.navbar.sticky {
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

/* Dropdown Customization */
.dropdown-menu {
    border-radius: 10px;
    padding: 10px 0;
}

.dropdown-item {
    transition: var(--transition-smooth);
    font-weight: 500;
    color: var(--dark-text);
}

.dropdown-item:hover {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding-left: 25px;
}

/* Hero Section */
.hero-slider .carousel-item {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary-custom {
    background-color: var(--primary-blue);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition-smooth);
    color: var(--white);
}

.btn-primary-custom:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Section Styling */
.section-padding {
    padding: 50px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-blue);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
    margin-top: 10px;
}

/* Cards */
.card-modern {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    overflow: hidden;
    height: 100%;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Values Section */
.value-item {
    text-align: center;
    padding: 20px;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Counter Section */
.counter-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0;
}

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

.counter-item h3 {
    font-size: 3rem;
    font-weight: 800;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 20px 0 10px;
}

.footer-separator {
    height: 10px;
    background-color: var(--white);
    width: 100%;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Page New Design */
.contact-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info-list {
    list-style: none;
    padding: 0;
}

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

.contact-info-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h6 {
    margin-bottom: 2px;
    font-weight: 700;
    color: var(--dark-blue);
}

.contact-info-text p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
}

.whatsapp-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 12px;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-card i {
    font-size: 2.5rem;
}

.whatsapp-card .btn-wa {
    background-color: white;
    color: var(--primary-blue);
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.whatsapp-card .btn-wa:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-control-custom {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #fcfcfc;
}

.form-control-custom:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 117, 163, 0.1);
    border-color: var(--primary-blue);
    background-color: white;
}

.btn-send-message {
    background-color: var(--dark-blue);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-send-message:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* WhatsApp Floating Button with Pulse Effect */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
}

.whatsapp-float i {
    line-height: 1;
}

.whatsapp-float::before,
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    opacity: 0.7;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

.whatsapp-float::after {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        font-size: 28px;
    }

    .whatsapp-float::before,
    .whatsapp-float::after {
        display: block;
        animation: pulse-ring-mobile 2s infinite;
    }

    .whatsapp-float::after {
        animation-delay: 1s;
    }
}

@keyframes pulse-ring-mobile {
    0% {
        transform: none;
        opacity: 0.55;
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    }

    100% {
        transform: none;
        opacity: 0;
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

/* Carousel Controls Customization */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition-smooth);
    z-index: 5;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--dark-blue);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 30px; /* Alejados de la parte central */
}

.carousel-control-next {
    right: 30px; /* Alejados de la parte central */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        position: relative;
    }

    .navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        height: 52px !important;
        width: auto;
    }

    .navbar-toggler {
        flex-shrink: 0;
    }

    .navbar-collapse {
        flex-basis: 100%;
    }

    .navbar-nav {
        padding-top: 1rem;
    }

    .hero-internal {
        min-height: 320px !important;
        width: 100%;
    }

    .hero-internal .display-3 {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .display-5 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .display-6 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .lead {
        font-size: 1rem;
    }

    .hero-slider .carousel-item {
        height: 70vh;
        min-height: 460px;
        background-position: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .breadcrumb {
        flex-wrap: wrap;
        row-gap: 0.35rem;
        word-break: break-word;
    }

    .card,
    .contact-card,
    .card-modern {
        max-width: 100%;
    }

    .contact-card {
        padding: 1.25rem !important;
    }

    .contact-info-text {
        min-width: 0;
    }

    .contact-info-text p,
    .contact-info-text h6 {
        overflow-wrap: anywhere;
    }

    .whatsapp-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .whatsapp-card .btn-wa {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .btn-lg {
        width: 100%;
        white-space: normal;
    }

    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: none !important;
    }

    .hero-content h1 {
        font-size: 2.35rem;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .section-padding {
        padding: 60px 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev { left: 15px; }
    .carousel-control-next { right: 15px; }
}
