/* Estilos específicos del sitio */

/* Background con imagen */
.main-content {
    background-image: url('../img/carta.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.65);
    z-index: 1;
}

.main-content-inner {
    position: relative;
    z-index: 2;
}

/* Estilos para formularios de autenticación */
.auth-container {
    max-width: 850px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    padding: 2.5rem 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: #212529;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6c757d;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Landing Simple */
.landing-simple {
    text-align: center;
    padding: 4rem 2rem;
}

.landing-simple h1 {
    color: #1e3a8a;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.landing-simple .landing-subtitle {
    color: #6c757d;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.landing-simple .landing-description {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.landing-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.landing-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
}

.landing-btn .btn-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-section h1 {
    margin-bottom: 1rem;
}

.hero-section .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Feature Box */
.feature-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-box .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-box h4 {
    margin-bottom: 1rem;
    color: #212529;
}

/* Welcome Section */
.welcome-section {
    border-left: 5px solid #3b82f6;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.welcome-section h1 {
    color: #212529;
    margin-bottom: 1rem;
}

.welcome-section .icon {
    font-size: 2.5rem;
    margin-right: 0.5rem;
}

/* Sección de verificación de email */
.verification-container {
    max-width: 500px;
    margin: 2rem auto;
}

.verification-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    text-align: center;
}

.verification-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.code-input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: bold;
    padding: 1rem;
}

/* Validación de errores */
.validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
}

.validation-summary-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: disc;
}

/* Estilos para página de Carta Náutica */
body:has(#container) .main-content {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:has(#container) .main-content::before {
    display: none !important;
}

body:has(#container) .main-content-inner {
    padding: 0 !important;
    max-width: none !important;
}

body:has(#container) .footer {
    display: none !important;
}

/* Overlay de ayuda */
.help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6000;
}

.help-content {
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    background: white;
    border-radius: 10px;
    border: 3px solid #003366;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #003366;
    color: white;
}

.help-header h2 {
    margin: 0;
    font-size: 18px;
}

.help-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.help-close:hover {
    color: #ffd700;
}

.help-body {
    padding: 16px;
    overflow-y: auto;
    display: grid;
    gap: 16px;
}

.help-body p {
    margin: 0 0 8px 0;
    color: #333;
}

.help-body h3 {
    color: #003366;
    margin: 16px 0 8px 0;
}

.help-tool {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.help-tool-title {
    font-weight: bold;
    color: #003366;
    margin-bottom: 8px;
}

.help-tool-body {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: center;
}

.help-tool-body img {
    width: 100%;
    max-width: 160px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.help-tool-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .sidebar {
        width: 60px;
    }

    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    .footer {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    .sidebar-nav-link {
        font-size: 1.25rem;
        padding: 0.75rem;
    }

    body:has(#container) #container {
        left: 60px;
        width: calc(100vw - 60px);
    }

    .help-tool-body {
        grid-template-columns: 1fr;
    }
}