/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
    --black: #000000;
    --light: #F0F6F6;
    --white: #FFFFFF;
    --primary: #023E3F;
    --secondary: #025859;
    --input: #666;
    --accent-1: #BD0514;
    --accent-2: #29F34A;
    --font-primary: "Brozeri";
    
    /* Spacing */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --shadow-sm: 0 0 8px 0 rgba(12, 233, 137, 0.15);
    --shadow-md: 0 0 12px 0 rgba(0, 0, 0, 0.15);
}

/* ========================================
   RESETS & UTILITIES
   ======================================== */
.img-fluid {
    width: 100%;
}

.noPadding {
    padding: 0;
}

.row {
    padding: 0 !important;
    margin: 0 !important;
}

.row.no-gutters>[class^='col-'],
.row.no-gutters>[class*='col-'] {
    padding-right: 0;
    padding-left: 0;
}

::selection {
    background-color: var(--white);
    color: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition-base);
}

/* ========================================
   BASE ELEMENTS
   ======================================== */
html, body {
    position: relative;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--primary);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: 100vh 100vw;
}

body * {
    font-family: "Montserrat", sans-serif;
    position: relative;
    z-index: 1;
}

body,
input,
textarea,
select {
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-display: swap;
    color: var(--light);
}

h1, .h1 {
    font-size: clamp(2.65rem, 2.1667rem + 1.0069vw, 3.375rem);
    font-weight: 800;
}

h2, .h2 {
    font-size: clamp(2rem, 1.8333rem + 0.3472vw, 2.25rem);
    font-weight: 700;
}

h3, .h3 {
    font-size: clamp(1.5rem, 1.375rem + 0.2604vw, 1.6875rem);
    font-weight: 600;
}

p, li, label {
    font-size: clamp(1rem, 0.9167rem + 0.1736vw, 1.125rem);
    color: var(--light);
}

.small {
    font-size: 0.85em;
    text-align: center;
}

.title {
    font-family: var(--font-primary), sans-serif;
    font-size: clamp(3.25rem, 1.0499rem + 3.5522vw, 5.3125rem);
}

a {
    color: var(--white);
    text-decoration: underline;
    transition: var(--transition-base);
}

a:hover,
a:active,
a:focus {
    color: var(--white);
}

/* ========================================
   BUTTONS
   ======================================== */
.button {
    font-size: clamp(1rem, 0.9167rem + 0.1736vw, 1.125rem);
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    text-transform: none;
    padding: 0.675rem 1.85rem;
    background-color: var(--accent-2);
    border: 1px solid var(--accent-2);
    outline: none;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0);
}

.button:hover, .button:focus, .button:active {
    box-shadow: var(--shadow-md);
}

form .button:hover {
    padding-inline: 2.5rem;
}

/* ========================================
   COLORS UTILITIES
   ======================================== */
.color-primary { color: var(--primary); }
.color-accent1 { color: var(--accent-1); }
.color-accent2 { color: var(--accent-2); }
.color-white { color: var(--white); }
.color-black { color: var(--black); }

/* ========================================
   BACKGROUNDS
   ======================================== */
.background-primary { background-color: var(--primary); }
.background-primary-opacity { background: rgba(2, 62, 63, 0.75); }
.background-secondary { background-color: var(--secondary); }
.background-white { background-color: var(--white); }

.background-light1 {
    background-image: url("https://image.comunicacion-fmf.mx/lib/fe31117473640478761576/m/1/be8fc167-0e3e-407b-9793-3f3036bc7698.png"), linear-gradient(0deg, #FFF 0%, #F0F6F6 50.96%);
    background-size: 259px 85px, 100% 100%;
    background-position: center, center;
    background-repeat: repeat, no-repeat;
    background-attachment: fixed, fixed;
}

.background-light2 {
    background-image: url("https://image.comunicacion-fmf.mx/lib/fe31117473640478761576/m/1/5c4e462b-d941-455f-8d58-3a4765885f2a.png"), linear-gradient(0deg, #FFF 0%, #F0F6F6 50.96%);
    background-size: 1222px 176px, 100% 100%;
    background-position: center, center;
    background-repeat: repeat, no-repeat;
    background-attachment: fixed, fixed;
}

.background-dark1 {
    background-image: url("https://image.comunicacion-fmf.mx/lib/fe31117473640478761576/m/1/7792a22e-ceca-4aec-9a31-798fc78094d3.png");
    background-size: 259px 85px;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: var(--black);
}
.background-dark2 {
    background-image: url("https://image.comunicacion-fmf.mx/lib/fe31117473640478761576/m/1/a25a1453-f4aa-45ae-b251-77bfacd3cb01.jpg");
    background-size: 1222px 176px;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: var(--black);
    background-blend-mode: multiply;
}

/* ========================================
   LAYOUT STRUCTURE
   ======================================== */
main {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 100dvh 100vw;
    width: 100%;
    gap: clamp(3rem, 0.8665rem + 3.4446vw, 5rem);
}

.block {
    padding: 0 1rem;
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 800px 100vw;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    padding: clamp(1.5rem, 0.8333rem + 1.3889vw, 2.5rem) 1rem;
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 80px 100vw;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-brand {
    margin: 0;
    padding: 0;
}

.navbar picture {
    display: table;
}

.nav-link {
    font-size: clamp(1rem, 0.9167rem + 0.1736vw, 1.125rem);
    color: var(--white);
}

.nav-link:hover, .nav-link:focus, .nav-link:active {
    color: var(--primary);
}

.navbar-brand img {
    max-width: clamp(17.5rem, 10.5662rem + 11.1948vw, 24rem);
    width: 100%;
    height: auto;
}

.navbar.v2 {
    padding: 1.5rem 1rem;
}

.navbar.v2 .navbar-brand img {
    max-width: clamp(9.375rem, 6.0414rem + 5.3821vw, 12.5rem);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 2.5rem .5rem;
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 200px 100vw;
}

.link-fxp {
    display: table;
    margin: 0 auto;
}

.footer hr {
    border-top-color: var(--white);
}

.footer .social {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
    border-radius: 21px;
    border: 1px solid rgba(240, 246, 246, 0.25);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.footer i {
    font-size: 1.25rem;
    color: var(--light);
}

.footer .social a:hover, .footer .social a:focus, .footer .social a:active {
    border: 1px solid rgba(240, 246, 246, 0.85);
    background: rgba(255, 255, 255, 0.85);
}

.footer .social a:hover i, .footer .social a:focus i, .footer .social a:active i {
    color: var(--primary);
}

.footer img.fxp {
    display: block;
    max-width: 162px;
    width: 100%;
    height: auto;
    margin: .5rem auto 0;
}

/* Footer Light Variant */
.footer-light p {
    color: var(--primary);
}

.footer-light hr {
    opacity: 0.25;
    border-top-color: var(--primary);
}

.footer-light .social a {
    border: 1px solid rgba(2, 62, 63, 0.25);
    background: rgba(2, 62, 63, 0.05);
}

.footer-light i {
    color: var(--secondary);
}

.footer-light .social a:hover, .footer-light .social a:focus, .footer-light .social a:active {
    border: 1px solid rgba(2, 62, 63, 0.5);
    background: rgba(2, 62, 63, 0.25);
}

.footer-light img.fxp {
    max-width: 192px;
}

/* ========================================
   VISUAL EFFECTS
   ======================================== */
.bg-texture,
.bg-image {
    position: relative;
}

.bg-texture *,
.bg-image * {
    position: relative;
    z-index: 2;
}

.bg-texture::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://image.comunicacion-fmf.mx/lib/fe31117473640478761576/m/1/afbfacde-bec9-4686-b345-ab0e191b5603.png");
    background-size: auto 100%;
    background-position: bottom right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 100%;
    z-index: 1;
}

.bg-grad {
    background-image: none;
    background: linear-gradient(0deg, #025859 0%, #033 50.96%);
}

.version-light {
    background: linear-gradient(0deg, #FFF 0%, #F0F6F6 50.96%), #F0F6F6; 
}

.bg-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://image.comunicacion-fmf.mx/lib/fe31117473640478761576/m/1/98db190a-0f2b-4f9b-8a50-15e0720b1838.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .4;
    z-index: 1;
}

/* ========================================
   CONTENT COMPONENTS
   ======================================== */
.banner {
    position: relative;
    padding-inline: clamp(0rem, -2.6667rem + 5.5556vw, 4rem);
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 480px 100vw;
}

.sidebar img,
.banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: clamp(0.5rem, -0.1667rem + 1.3889vw, 1.5rem);
    box-shadow: 0 0 32px 0 rgba(160, 160, 160, 0.01);
    contain: layout style;
    content-visibility: auto;
}

.hero {
    padding-block: 2rem;
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 300px 100vw;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
}

.hero .container * {
    margin: 0;
}

.hero p.width-center {
    text-align: start;
    max-width: 991px;
    width: 100%;
    margin: 0 auto;
}

.hero .content-bg {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
}

.hr {
    display: block;
    height: clamp(2rem, 1.1333rem + 1.3994vw, 2.8125rem);
    background-image: url("https://image.comunicacion-fmf.mx/lib/fe31117473640478761576/m/1/8ea81da4-d604-4131-95bf-8d9dbaffab4e.png");
    background-size: auto 100%;
    background-position: center;
    background-repeat: repeat-x;
}

/* ========================================
   FORMS
   ======================================== */
.form-content {
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--secondary);
    background: rgba(2, 88, 89, 0.55);
    backdrop-filter: blur(22.5px);
    padding: clamp(1.5rem, 1.1667rem + 0.6944vw, 2rem) clamp(0.25rem, -0.9167rem + 2.4306vw, 2rem);
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 600px 100vw;
}

form p {
    font-size: clamp(0.95rem, 0.8333rem + 0.2431vw, 1.125rem);
    color: var(--light);
}

.form-select,
.form-control {
    display: block;
    font-size: clamp(0.95rem, 0.8333rem + 0.2431vw, 1.125rem);
    font-weight: 400;
    color: var(--black);
    width: 100%;
    border-radius: var(--border-radius-md);
    background-color: var(--light);
    border: 1px solid var(--light);
    padding: 1rem 1rem;
    appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23025859' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:hover, .form-select:focus, .form-select:active,
.form-control:hover, .form-control:focus, .form-control:active {
    color: var(--black);
    background-color: var(--light);
    border-color: #0ce9895a;
    box-shadow: var(--shadow-sm);
    outline: none;
}

.label_input {
    font-size: clamp(0.95rem, 0.8333rem + 0.2431vw, 1.125rem);
    font-weight: 600;
    color: var(--light);
    padding: 2px 0px;
}

.label_input.color-black {
    color: var(--black) !important;
}

.label_input.dest {
    font-size: clamp(1rem, 0.6667rem + 0.6944vw, 1.5rem);
    color: var(--white);
}

/* Checkboxes & Radio */
.form-check-input {
    border-color: var(--white);
    background-color: transparent;
}

.form-check-input:checked {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
}

.form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23025859'/%3e%3c/svg%3e");
}

.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* Input Elements */
input::placeholder {
    color: var(--input) !important;
}

input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.5);
    background-image: none;
}

.input-icon {
    position: relative;
}

.input-icon input {
    padding-right: 2rem;
}

.input-icon::after {
    content: "\f073";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    text-align: center;
    color: var(--secondary);
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 3rem;
    height: 1.85rem;
    opacity: 1;
    z-index: 2;
    background-color: var(--light);
}

/* Validation messages */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 5px;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    color: red !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    text-align: left;
    box-sizing: border-box;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ff7b7b;
    box-shadow: none;
}

.form-control.is-invalid + .invalid-feedback,
.form-select.is-invalid + .invalid-feedback,
textarea.form-control.is-invalid + .invalid-feedback {
    display: block;
}

.form-check-input.is-invalid ~ .invalid-feedback,
.form-check-input.is-invalid + .form-check-label + .invalid-feedback {
    display: block;
}

.form-check-label {
    color: var(--light);
}

.form-check-input.is-invalid + .form-check-label,
.form-check-input.is-invalid ~ .form-check-label {
    color: var(--light) !important;
}

.form-check-input.is-invalid {
    border-color: #dc3545 !important;
}

/* ========================================
   FORM VARIANTS
   ======================================== */
.form-content.opacity-primary {
    border: 1px solid var(--primary);
    background: rgba(2, 46, 47, 0.55);
}

.form-content.background-secondary {
    border: 1px solid var(--primary);
    background-color: var(--secondary);
}

.form-content.background-white {
    background-color: var(--white);
    border-color: var(--light);
}

.form-content.background-white * {
    color: var(--primary);
}

.form-content.background-white .form-check-input {
    border-color: var(--primary);
}

.form-content.background-dark {
    background-color: var(--black);
    border-color: var(--primary);
}

.form-content.background-dark .form-select,
.form-content.background-dark .form-control {
    color: var(--white);
    background-color: var(--input);
    border-color: var(--input);
}

.form-content.background-dark input::placeholder {
    color: var(--light) !important;
}

.form-content.background-dark .form-check-input:checked {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
}

.form-content.background-dark .input-icon::after {
    color: var(--white);
    background-color: var(--input);
}

/* ========================================
   SPECIAL PAGES
   ======================================== */
.ty-page {
    padding-block: 3rem;
    contain: layout style;
    content-visibility: auto;
    contain-intrinsic-size: 100vh 100vw;
}

.ty-page .hero {
    height: 100%;
}

.ty-page .hero .container {
    justify-content: center;
    height: 100%;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media only screen and (max-width: 991px) {
    .form-check-label {
        flex: 1;
    }
    
    .ty-page {
        padding-block: 0;
    }
    
    /* Reduce content-visibility complexity on mobile */
    .block, .hero, .form-content, .banner, .navbar, .footer {
        contain: layout;
        content-visibility: visible;
    }
}

@media only screen and (max-width: 376px) {
    .container, .container-fluid {
        padding-inline: 0;
    }
}