/* ============================================================
   COMPONENTES REUTILIZABLES - TEMA CLARO
   ============================================================ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 10px;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 480px) {
    .btn {
        white-space: normal;
        word-break: break-word;
        padding: 10px 18px;
        font-size: 14px;
    }
}

.btn-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-accent {
    background: var(--grad-accent);
    color: #0A2540;
    box-shadow: 0 4px 15px rgba(253, 193, 1, 0.4);
    font-weight: 700;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 193, 1, 0.6);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: #022566;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Form Controls Reset & Responsive Sizing */
input, select, textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #013183;
    box-shadow: 0 0 0 3px rgba(1, 49, 131, 0.15);
}

/* Section Titles & Red Chamfered Banner Badge */
.section-title {
    text-align: left;
    margin-bottom: 24px;
    width: 100%;
}

.subtitle {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0A2540 0%, #013183 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: clamp(12px, 2.5vw, 15px);
    padding: 8px 22px 8px 14px;
    margin-bottom: 10px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    box-shadow: 0 4px 15px rgba(1, 49, 131, 0.35);
    position: relative;
    border: none;
    border-radius: 0;
    max-width: 100%;
}

.section-title h2 {
    font-size: clamp(24px, 4vw, 42px);
    margin-top: 6px;
    margin-bottom: 12px;
    color: #0F172A;
    font-weight: 800;
    line-height: 1.2;
}

.section-title p {
    text-align: left;
    margin: 8px 0 0 0 !important;
    font-size: clamp(13.5px, 2vw, 16px);
}

/* Navbar (Encabezado Azul Royal) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    transition: var(--transition);
    background: linear-gradient(135deg, #0A2540 0%, #013183 100%);
    border-bottom: 2px solid #FDC101;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Tuercas Industriales Doradas en los extremos exactos de la línea inferior */
.navbar::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 2px;
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23FDC101' stroke='%230F172A' stroke-width='2'%3E%3Cpolygon points='12 2 21 7 21 17 12 22 3 17 3 7 12 2'%3E%3C/polygon%3E%3Ccircle cx='12' cy='12' r='4.5' fill='%230A2540'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1002;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 2px;
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23FDC101' stroke='%230F172A' stroke-width='2'%3E%3Cpolygon points='12 2 21 7 21 17 12 22 3 17 3 7 12 2'%3E%3C/polygon%3E%3Ccircle cx='12' cy='12' r='4.5' fill='%230A2540'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1002;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.navbar.scrolled {
    padding: 8px 0;
    background: #0A2540;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.logo img {
    max-height: 56px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.navbar.scrolled .logo img {
    max-height: 46px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap !important;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #FDC101;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: #FDC101;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-actions .btn-accent {
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 6px;
    gap: 7px;
    box-shadow: 0 4px 15px rgba(253, 193, 1, 0.35);
}

.nav-actions .btn-accent svg {
    width: 16px;
    height: 16px;
}

.advisor-btn-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.advisor-img-btn {
    height: 54px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    transition: var(--transition);
}

.advisor-btn-link:hover .advisor-img-btn {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(1, 49, 131, 0.25));
}

.mobile-advisor-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FDC101 !important;
    color: #0A2540 !important;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 18px !important;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(253, 193, 1, 0.3);
}

.mobile-menu-btn-item {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-menu-btn-item {
        display: block !important;
        width: 100%;
        margin-top: 10px;
    }
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #0F172A;
    font-size: 24px;
    cursor: pointer;
}

/* Floating WhatsApp / Advisor Button (Agrandado) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 165px;
    height: 165px;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.22));
    transition: var(--transition);
}

.whatsapp-float:hover img {
    transform: scale(1.1) translateY(-6px);
    filter: drop-shadow(0 14px 32px rgba(1, 49, 131, 0.35));
}

.whatsapp-float::before {
    display: none;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
