/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #0a0a0a;
    --color-dark: #111111;
    --color-gold: #C9A962;
    --color-gold-dark: #B8941F;
    --color-white: #ffffff;
    --color-gray: #8D99AE;
    --color-gray-light: #F4F4F6;
    --color-gray-border: #D3D3D3;
    --font-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-gray-light);
    color: var(--color-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - FIJO SIEMPRE */
.header {
    background-color: var(--color-black);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    border-bottom: 3px solid #C9A962 !important;
}

/* Ajuste del body para que el contenido no quede oculto */
body {
    padding-top: 120px !important; /* Ajusta este valor según la altura real de tu header */
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 60px;
    width: auto;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-name .stunt {
    color: var(--color-white);
}

.brand-name .corps {
    color: var(--color-gold);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.boxes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

/* Box Styles */
.box {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-gold);
}

.box h2 {
    color: var(--color-black);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.box-description {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.box-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid var(--color-gray-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
}

/* Button Styles */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-black);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-gray);
    border: 2px solid var(--color-gray-border);
}

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

/* Forgot Password */
.forgot-password {
    text-align: center;
    margin-top: 10px;
}

.forgot-password a {
    color: var(--color-gray);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--color-gold);
}

/* Message */
.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-white);
}

.copyright {
    color: var(--color-gray);
    font-size: 0.85rem;
}

/* Dashboard Styles */
.dashboard {
    flex: 1;
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    color: var(--color-black);
    font-size: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-gold);
    transition: transform 0.3s ease;
}

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

.dashboard-card h3 {
    color: var(--color-black);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dashboard-card p {
    color: var(--color-gray);
}

/* Registration Form Box */
.registration-form-box {
    max-width: 600px;
    margin: 0 auto;
}

/* Quitar subrayado de los botones de idioma */
.language-selector a,
.language-selector .lang-btn,
.lang-btn {
    text-decoration: none !important;

}

/* Estilo opcional para que se vean mejor */
.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #C9A962;
    border-radius: 6px;
    color: #C9A962;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #C9A962;
    color: #0a0a0a;
    text-decoration: none !important;
}

.lang-btn.active {
    background: #C9A962;
    color: #0a0a0a;
    text-decoration: none !important;
}

/* ===== CONTACTO - REDES SOCIALES ===== */
.contact-social {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(201, 169, 98, 0.3);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #C9A962;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 25px;
    border: 2px solid #C9A962;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    background: #C9A962;
    color: #0a0a0a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.4);
}

.instagram-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.instagram-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}



/* Responsive */
@media (max-width: 600px) {
    .instagram-link {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .instagram-icon {
        width: 24px;
        height: 24px;
    }
}
@media (max-width: 768px) {
    img[src*="uploads/"],
    .foto-perfil img,
    .perfil-foto img,
    .card img {
        height: auto !important;
        max-height: 400px !important;
        object-fit: contain !important;
        background: #f5f5f5 !important;
    }

    .boxes-container {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .logo {
        height: 40px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Placeholder cuando no hay foto */
.no-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    gap: 8px;
}

.no-photo-placeholder svg {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

.no-photo-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Asegurar que el contenedor tenga altura */
.specialist-photo {
    width: 100%;
    height: 180px;
    background: var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.specialist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================ */
/* ESTILOS RESPONSIVE PARA MÓVIL                */
/* ============================================ */

@media (max-width: 768px) {
    img[src*="uploads/"],
    .foto-perfil img,
    .perfil-foto img,
    .card img {
        height: auto !important;
        max-height: 400px !important;
        object-fit: contain !important;
        background: #f5f5f5 !important;
    }
    .main-content {
        padding: 20px 15px;
    }
    
    .boxes-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .box {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }
    
    /* Logo más pequeño en móvil */
    .login-logo img {
        height: 50px;
        margin-bottom: 10px;
    }
    
    .brand-name {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .brand-tagline {
        font-size: 0.8rem;
    }
    
    /* Botones más grandes y fáciles de tocar */
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px; /* Tamaño mínimo táctil recomendado */
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Inputs más grandes en móvil */
    .form-input {
        padding: 14px;
        font-size: 16px; /* Previene zoom en iOS */
        min-height: 48px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
        display: block;
    }
    
    /* Espaciado de textos */
    h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .box-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    /* Enlaces más grandes y visibles */
    .forgot-password a,
    .back-link,
    .forgot-link {
        display: inline-block;
        padding: 10px 0;
        font-size: 0.95rem;
        min-height: 44px; /* Tamaño táctil mínimo */
    }
    
    /* Selector de idioma */
    .language-selector {
        margin-bottom: 20px;
    }
    
    .language-selector button {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    /* Mensajes de error/éxito */
    .message {
        margin-top: 15px;
        padding: 12px;
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    /* Contenedores */
    .container {
        padding: 0 10px;
    }

      .specialist-photo {
        width: 100% !important;
        height: auto !important;
        min-height: 180px !important;
        max-height: 220px !important;
        background: #f5f5f5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    
    .specialist-photo img {
        max-width: 100% !important;
        max-height: 190px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        border: 3px solid var(--color-gold) !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Placeholder en móvil */
    .no-photo-placeholder {
        min-height: 180px !important;
    }
    
    .no-photo-placeholder svg {
        width: 80px !important;
        height: 80px !important;
    }
    
    .no-photo-placeholder span {
        font-size: 1rem !important;
    }

    
}


/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 375px) {
    .brand-name {
        font-size: 1.3rem;
    }
    
    .box {
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 1.2rem;
    }
}

/* Mejoras para tablets en vertical */
@media (min-width: 769px) and (max-width: 1024px) {
    .boxes-container {
        max-width: 700px;
    }
    
    .box {
        padding: 30px;
    }
}