:root {
    --gold-primary: #C9A04B;
    --gold-light: #EADCA3;
    --gold-dark: #9A772B;
    --gold-gradient: linear-gradient(100deg, #D9AE4D, #F1D479, #C89932);
    --gold-border-gradient: linear-gradient(135deg, #DFBD6C, #F4DFC0, #B88B27);
    --bg-color: #FCFBF9;
    --text-dark: #9A772B;
    --text-muted: #666;
    --white: #FFFFFF;
}

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

html,
body {
    /* Sophisticated dark background for desktop comfort */
    background-color: #121212;
    background-image: radial-gradient(circle at top right, #2c2c2e, #121212);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    height: 100%;
}

.phone-container {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(252, 251, 249, 0.55), rgba(252, 251, 249, 0.55)), url('imagen/marmol.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* On larger screens, simulate a phone frame */
@media (min-width: 480px) {
    .phone-container {
        margin: 40px auto;
        min-height: auto;
        height: 850px;
        border-radius: 40px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 10px #9A772B;
    }
}

/* Header */
.app-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    padding-top: 30px;
    /* Accounts for mock status bar */
}

.header-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 25px;
    padding-bottom: 40px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 160, 75, 0.5) transparent;
}

/* Custom Webkit Scrollbar */
.main-content::-webkit-scrollbar {
    width: 4px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background-color: rgba(201, 160, 75, 0.6);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(201, 160, 75, 0.9);
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

/* Avatar Frame */
/*.profile-avatar-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gold-border-gradient);
    padding: 3px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(200, 153, 50, 0.15);
}*/

/*.profile-avatar {
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}*/

.profile-avatar {
    /* Ajustamos a un tamaño fijo para que sea un círculo perfecto */
    width: 120px;
    height: 120px;

    /* Mantenemos tu efecto de cristal (Glassmorphism) */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Borde dorado para mantener la línea visual del sitio */
    border: 2px solid #D9AE4D;
    border-radius: 50%;

    /* Esencial para que la imagen no se salga del círculo */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Tu sombra original y transiciones */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), inset 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Estilo para la imagen dentro del círculo */
.avatar-img {
    width: 100%;
    /* Ocupa todo el ancho */
    height: 100%;
    /* Ocupa todo el alto */
    object-fit: cover;
    /* ¡LA CLAVE! Ajusta la imagen sin deformarla y la centra automáticamente */
    object-position: center;
    /* Asegura que la cara salga en el medio */
}

.profile-avatar:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 45px rgba(217, 174, 77, 0.3), inset 0 0 0 3px var(--gold-dark);
    background: rgba(255, 255, 255, 0.8);
}

.avatar-placeholder-text {
    font-size: 15px;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.3;
    transition: transform 0.4s ease, color 0.3s ease;
}

.profile-avatar:hover .avatar-placeholder-text {
    transform: scale(1.08);
    color: var(--gold-dark);
    font-weight: 600;
}

/* Brand Text Area */
.brand-area {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 800;
    font-size: 42px;
    letter-spacing: -0.5px;
    color: #111;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--gold-primary);
    text-transform: uppercase;
    padding-bottom: 12px;
    position: relative;
}

/* Delicate border below subtitle */
.brand-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/*.profession-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 36px;
}*/

.profession-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #333;
    text-transform: none; /* Cambia de uppercase a none */
    /*margin-bottom: 25px;*/
    margin-bottom: 36px;
}

/* Info Card */
.info-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 22px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    width: 100%;
    text-align: left;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.info-line {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-line:last-child {
    margin-bottom: 0;
}

.info-line em {
    font-style: italic;
    color: #555;
}

.info-line .emoji {
    font-size: 16px;
}

.info-line.highlight {
    margin-top: 15px;
}

.info-line.highlight strong {
    color: var(--text-dark);
    font-weight: 700;
    font-style: italic;
}

/* Buttons Container */
.actions-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-gold {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    background: var(--gold-gradient);
    border: none;
    padding: 18px;
    border-radius: 14px;
    color: #111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(217, 174, 77, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Shine effect on button */
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.btn-gold:hover::before {
    left: 200%;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 174, 77, 0.4);
}

.btn-gold:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(217, 174, 77, 0.3);
}

/* Bottom Chat Sheet */
.chat-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: 35px 35px 0 0;
    padding: 20px 20px 30px;
    /* Extra bottom padding for home indicator */
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.chat-input-wrapper {
    background: #F4F4F6;
    border-radius: 25px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.chat-placeholder {
    color: #A0A0A5;
    font-size: 15px;
}

.chat-toolbar {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.tool-icon {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.tool-icon:hover {
    color: #333;
}

/* Active blue pill */
.pill-action {
    background: #E8F0FE;
    color: #1A73E8;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    font-size: 18px;
    cursor: pointer;
}

.pill-action .x-icon {
    font-size: 12px;
}

.toolbar-spacer {
    flex: 1;
}

.send-icon {
    color: #D6D6DB;
    margin-left: 15px;
}

/* OS Navigation Space */
.os-nav-space {
    width: 40%;
    height: 5px;
    background: #ccc;
    border-radius: 10px;
    margin: 20px auto 0;
}

/* --- Slider Sheet Styles --- */
.slider-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 92vh;
    /* Ensure it doesn't cover 100% of the screen */
    overflow-y: auto;
    /* Enable scrolling for long content */
    background: var(--bg-color);
    border-radius: 35px 35px 0 0;
    padding: 25px 30px;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.15);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 160, 75, 0.5) transparent;
}

/* Custom Webkit Scrollbar para Sliders */
.slider-sheet::-webkit-scrollbar {
    width: 4px;
}

.slider-sheet::-webkit-scrollbar-track {
    background: transparent;
    margin-top: 50px;
    /* Evita que la barra choque con la manija superior */
    margin-bottom: 20px;
}

.slider-sheet::-webkit-scrollbar-thumb {
    background-color: rgba(201, 160, 75, 0.6);
    border-radius: 10px;
}

.slider-sheet::-webkit-scrollbar-thumb:hover {
    background-color: rgba(201, 160, 75, 0.9);
}

.slider-sheet.open {
    transform: translateY(0);
}

.slider-drag-handle {
    width: 45px;
    height: 5px;
    background: #CCC;
    border-radius: 10px;
    margin-bottom: 25px;
}

.close-slider-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
}

.slider-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.slider-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.slider-actions {
    display: flex;
    gap: 15px;
    width: 100%;
}

.slider-actions .slider-btn {
    padding: 15px;
    font-size: 11px;
    margin-bottom: 0;
}

/* --- Programs Section --- */
.programs-section {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 25px;
}

.section-subtitle {
    font-size: 10px;
    color: #000000;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: left;
    margin-left: 2px;
}

/* --- About Section --- */
.about-section {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 25px;
    text-align: left;
    scroll-margin-top: 20px;
}

.about-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.about-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.about-text .highlight-text {
    color: #111;
    font-weight: 700;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
}

.btn-outline-gold {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gold-primary);
    padding: 16px 20px;
    border-radius: 14px;
    color: #333;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: #FFF;
    border-color: var(--gold-dark);
    box-shadow: 0 5px 15px rgba(217, 174, 77, 0.15);
    transform: translateY(-2px);
}

.btn-outline-gold .btn-icon {
    color: var(--gold-dark);
    font-size: 22px;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.btn-outline-gold .btn-text {
    flex: 1;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.btn-outline-gold .chevron {
    color: #CCC;
    font-size: 16px;
}

.mt-4 {
    margin-top: 25px;
}

/* --- Social Links --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: var(--gold-dark);
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.social-icon:hover {
    background: var(--gold-gradient);
    color: #111 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 174, 77, 0.3);
}

/* Brand colors for social icons */
.social-icon.insta {
    color: #E1306C;
}

.social-icon.fb {
    color: #1877F2;
}

.social-icon.tiktok {
    color: #111111;
}

.social-icon.linkedin {
    color: #0A66C2;
}

/* Estilo para el icono de YouTube */
.social-icon.yt {
    color: #FF0000;
    /* Rojo oficial de YouTube */
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon.yt:hover {
    color: #cc0000;
    /* Un rojo un poco más oscuro al pasar el mouse */
    transform: translateY(-3px);
    /* Efecto de levante */
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section>* {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.profile-avatar-container {
    animation-delay: 0.1s;
}

.brand-area {
    animation-delay: 0.2s;
}

.profession-title {
    animation-delay: 0.3s;
    margin: 25px;
}

.info-card {
    animation-delay: 0.4s;
}

.actions-container {
    animation-delay: 0.5s;
}

.programs-section {
    animation-delay: 0.6s;
}

.social-links {
    animation-delay: 0.7s;
}

/* --- Mobile System UI Elements --- */
.status-bar {
    position: relative;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px 0 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 15px;
}

.user-access {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 160, 75, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 160, 75, 0.2);
}

.user-access:hover {
    background: rgba(201, 160, 75, 0.2);
    transform: translateY(-1px);
}

.user-access i {
    color: var(--gold-primary);
    font-size: 18px;
}

.user-access span {
    font-size: 11px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Auth Tabs Styling */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 25px auto;
    width: 100%;
    max-width: 400px; /* Constrain width on wider screens */
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid rgba(201, 160, 75, 0.1);
    padding: 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 5px;
    background-color: var(--text-dark);
    border-radius: 10px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.8;
}

/* --- Toast Notification --- */
.toast-msg {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translate(-50%, -20px);
    background: rgba(40, 40, 45, 0.95);
    color: #fff;
    padding: 14px 18px 14px 22px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 3000;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 85%;
    width: max-content;
    line-height: 1.4;
    text-align: left;
}

.toast-msg.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    padding: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #FFF;
}

/* --- Haptic/Tactile Active States --- */
.btn-gold:active,
.btn-outline-gold:active,
.social-icon:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease;
}

/* --- PWA Install Prompt --- */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 400px;
    background: #FFF;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.install-prompt.show {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.install-icon img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.install-text h4 {
    margin: 0 0 5px 0;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.install-text p {
    margin: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.install-actions {
    display: flex;
    gap: 10px;
}

.install-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #F0F0F0;
    color: #555;
}

.btn-install {
    background: var(--gold-primary);
    color: #FFF;
}

.btn-install:active {
    transform: scale(0.96);
}

.btn-cancel:active {
    transform: scale(0.96);
}

/*Firma imagen*/
.brand-signature {
    display: block;
    max-width: 360px;
    /* Ajusta este valor según el tamaño que desees */
    height: auto;
    margin: -50px auto;
    /*margin: 10px auto;*/
    /* Esto la centra y le da espacio vertical */
}

/*Firma imagen*/

.btn-gold {
    display: inline-flex;
    flex-direction: column;
    /* Alinea los textos uno debajo del otro */
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
}

.btn-gold .sub-text {
    display: block;
    font-size: 0.7em;
    /* Lo hace más pequeño que el título principal */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.9;
}

.typewriter-text {
    font-size: 0.7em;
    /* Mantener el tamaño pequeño */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    /* Necesario para la alineación */
    position: relative;
    min-height: 1.2em;
    /* Mantiene el espacio aunque esté vacío */
}

/* El cursor parpadeante */
.typewriter-text::after {
    content: '|';
    /* Carácter del cursor */
    position: absolute;
    right: -8px;
    /* Ajuste según la tipografía */
    color: inherit;
    /* Mismo color que el texto */
    animation: parpadeo 0.7s infinite;
}

/* Animación del parpadeo del cursor */
@keyframes parpadeo {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* Hacer que el texto del input de fecha sea blanco */
input[type="date"] {
    color: #333;
    text-transform: none;
}

/* Cambiar el color del icono del calendario a dorado o blanco */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(100%) saturate(1000%) hue-rotate(10deg);
    cursor: pointer;
}

/* Estilo unificado para todos los campos */
.input-custom {
    width: 100%;
    padding: 12px;
    border: 1px solid #D9AE4D;
    background: rgba(255, 255, 255, 0.95);
    color: #333 !important;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    height: 48px;
}

/* Estilo específico para selects y para que combinen bien */
select.input-custom,
select.select-pais,
#select-pais {
    cursor: pointer;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23D9AE4D' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}

select.input-custom option,
select.select-pais option,
#select-pais option {
    background-color: #fff;
    color: #333;
}

/* Estilo para los placeholders del select */
select.input-custom option[value=""],
select.select-pais option[value=""],
#select-pais option[value=""] {
    color: #999;
}

/* Ajustes para que los selects encajen bien en filas flexibles */
.form-row {
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
}

.form-row > * {
    min-width: 0;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }

    select.input-custom,
    select.select-pais,
    #select-pais {
        padding-right: 16px;
        background-position: right 12px center;
    }
}

/* Asegurar que el input de fecha también tenga fondo claro y mismo estilo */
input[type="date"].input-custom {
    color: #333;
    background: rgba(255, 255, 255, 0.95);
}

/* Forzar el color de texto en select y fecha */
select.input-custom,
select.select-pais,
#select-pais,
input[type="date"],
.input-custom {
    color: #333 !important;
    opacity: 1 !important;
}


/* Estilo para el texto que aparece dentro del campo de fecha (el DD/MM/AAAA) */
input[type="date"]::-webkit-datetime-edit {
    color: #333 !important;
}

.label-helper {
    font-size: 11px;
    color: #666;
    /* Un gris suave */
    margin-left: 5px;
    margin-top: -10px;
    /* Lo acerca un poco más al input */
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ajuste para que el input de fecha no deje tanto espacio abajo ahora que hay texto */
.date-custom {
    margin-bottom: 5px !important;
}

/*Contenedor Menu*/

/* --- External Link Modal --- */
.external-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.external-modal.show {
    opacity: 1;
    visibility: visible;
}

.external-modal-content {
    background: #FFF;
    width: 85%;
    max-width: 350px;
    padding: 30px 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.external-modal.show .external-modal-content {
    transform: scale(1);
}

.external-icon {
    font-size: 40px;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.external-modal-content h3 {
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #111;
}

.external-modal-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

.external-actions {
    display: flex;
    gap: 12px;
}

.external-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-ext {
    background: #F4F4F4;
    color: #666;
}

.btn-confirm-ext {
    background: var(--gold-gradient);
    color: #111;
    box-shadow: 0 5px 15px rgba(217, 174, 77, 0.2);
}

.btn-confirm-ext:active, .btn-cancel-ext:active {
    transform: scale(0.95);
}

/* Contenedor del submenú oculto por defecto */
.submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    /* Indentación para que se note que son sub-ítems */
}

/* Clase que se activará con JS */
.submenu-content.active {
    max-height: 500px;
    /* Un valor lo suficientemente grande */
}

/* Estilo para los botones dentro del submenú */
.sub-item {
    margin-top: 10px;
    border-style: dashed;
    /* Opcional: para diferenciarlos visualmente */
    opacity: 0.8;
}

/* Rotación de la flecha */
.chevron-down {
    transition: transform 0.3s ease;
}

.dropdown-trigger.active .chevron-down {
    transform: rotate(180deg);
}

/* Para que el botón In Company no se comporte como un link vacío */
.dropdown-trigger {
    width: 100%;
    cursor: pointer;
    /*background: transparent;*/
    display: flex;
    align-items: center;
    text-align: left;
}

/* Contenedor del texto para que se apile verticalmente */
.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alinea a la izquierda */
    line-height: 1.2;
    /* Ajusta el espacio entre líneas */
    flex: 1;
}

/* Estilo para el nuevo subtítulo */
.btn-subtitle {
    font-size: 11px;
    /* Más pequeño que el título */
    font-weight: 300;
    /* Más delgado */
    /*color: #D9AE4D;*/
    color: #000000;
    /* Color dorado para que combine */
    opacity: 0.8;
    /* Un poco más tenue */
    margin-top: 2px;
    text-transform: none;
    /* Evita que salga en mayúsculas si el padre lo está */
    font-style: italic;
    /* Le da un toque más "desde el alma" */
}

/* Ajuste del botón para que no se vea apretado con el nuevo texto */
.btn-outline-gold {
    height: auto !important;
    /* Permite que el botón crezca si es necesario */
    padding: 12px 15px !important;
}
/* Form group spacing */
.form-group {
    margin-bottom: 15px;
}

.auth-form, .brand-form {
    max-width: 400px;
    margin: 0 auto;
}

/*Contenedor Menu*/

/* Ojito del campo contraseña*/
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper .input-custom {
    width: 100%;
    padding-right: 40px; /* espacio para el ícono */
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--gold-primary, #d9ae4d); /* o el color que uses para hover */
}

/*Ojito del campo contraseña*/