/* ==========================================================================
   PUBLIC.CSS - Combined styles from Astro frontend for .NET backend
   Sources:
     - src/styles/global.css
     - src/components/HomeContent.astro
     - src/components/InscriptionForm.astro
     - src/pages/inscripcion.astro
     - src/pages/confirmacion.astro
     - src/pages/galeria/index.astro
     - src/pages/galeria/[slug].astro
   ========================================================================== */


/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
    --primary: #0a4d8c;
    --primary-dark: #063a6a;
    --secondary: #00b4d8;
    --accent: #90e0ef;
    --light: #caf0f8;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow: 0 4px 20px rgba(10, 77, 140, 0.15);
    --shadow-lg: 0 10px 40px rgba(10, 77, 140, 0.2);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
}


/* ==========================================================================
   3. HEADER
   ========================================================================== */

header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    padding: 8px 0;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.lang-switch {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lang-switch:hover, .lang-switch.active {
    opacity: 1;
}

.header-main {
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-600);
}

nav {
    display: flex;
    gap: 2px;
    align-items: center;
}

nav a {
    color: var(--gray-800);
    text-decoration: none;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap;
}

nav a:hover {
    background: var(--light);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Nav dropdown for cuestionarios/inkestak */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    color: var(--gray-800);
    text-decoration: none;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(10,77,140,0.15);
    min-width: 180px;
    z-index: 1001;
    padding: 6px 0;
    border: 1px solid var(--gray-200);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}


/* ==========================================================================
   4. HERO SECTION (global.css base)
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 180px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-mascot {
    width: min(1200px, 88vw);
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

@keyframes skating {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(-8px) rotate(-3deg);
    }
    75% {
        transform: translateX(8px) rotate(3deg);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ==========================================================================
   4b. HERO OVERRIDES (from HomeContent.astro - come AFTER global to override)
   ========================================================================== */

section {
    scroll-margin-top: 80px;
}

.hero {
    background-image: url('/texturas/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 480px;
    position: relative;
    z-index: 1;
    background-attachment: scroll !important;
    transition: none !important;
    animation: none !important;
    overflow: visible !important;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 40, 60, 0.45);
    z-index: 0;
    pointer-events: none;
    transition: none !important;
    animation: none !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.hero-badge {
    display: inline-block;
    background: rgba(120,130,150,0.25);
    color: #fff;
    padding: 8px 32px;
    border-radius: 32px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
    margin-top: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--white);
}


/* ==========================================================================
   6. PARTNERS
   ========================================================================== */

.partners {
    background: var(--white);
    padding: 40px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.partner-logo {
    height: 50px;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-placeholder {
    padding: 15px 25px;
    background: var(--gray-200);
    border-radius: 8px;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.85rem;
}


/* ==========================================================================
   7. SECTIONS (general)
   ========================================================================== */

section {
    padding: 80px 20px;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}


/* ==========================================================================
   8. CAMPAIGN SECTION
   ========================================================================== */

#campana {
    background: var(--gray-100);
}

.content-block {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.content-block h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-block h3 i {
    color: var(--secondary);
}

.content-block p {
    margin-bottom: 15px;
    color: var(--gray-800);
}

.content-block ul {
    list-style: none;
    padding: 0;
}

.content-block li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

.content-block li:last-child {
    border-bottom: none;
}

.content-block li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.content-block li strong {
    color: var(--primary);
}


/* ==========================================================================
   9. METHODOLOGY CARDS
   ========================================================================== */

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.method-card {
    background: var(--light);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--secondary);
}

.method-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.method-card p {
    font-size: 0.95rem;
    margin: 0;
}


/* ==========================================================================
   10. SAFETY SECTION
   ========================================================================== */

.safety-rules {
    background: #fff3cd;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.safety-rules h4 {
    color: #856404;
    margin-bottom: 15px;
}

.protocol-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-protocol {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-protocol:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}


/* ==========================================================================
   11. OBJECTIVES
   ========================================================================== */

#objetivos {
    background: var(--white);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.objective-card {
    background: var(--gray-100);
    border-radius: 15px;
    padding: 30px;
}

.objective-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.objective-card ul {
    list-style: none;
    padding: 0;
}

.objective-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.objective-card li::before {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 0.8rem;
}


/* ==========================================================================
   12. ORGANIZATION
   ========================================================================== */

#organizacion {
    background: var(--gray-100);
}

.schedule-box {
    background: var(--light);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.schedule-box h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.zone-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(10,77,140,0.1);
}

.zone-item:last-child {
    border-bottom: none;
}

.phase-list {
    counter-reset: phase;
}

.phase-list li {
    padding-left: 40px;
}

.phase-list li::before {
    content: counter(phase);
    counter-increment: phase;
    background: var(--secondary);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}


/* ==========================================================================
   13. CALENDAR
   ========================================================================== */

#calendario {
    background: var(--white);
}

.calendar-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.calendar-card {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.calendar-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.calendar-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.calendar-legend {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.festivo {
    background: #dc3545;
}

.legend-color.jornada {
    background: #ffc107;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.calendar-grid > .calendar-month:nth-child(4),
.calendar-grid > .calendar-month:nth-child(5) {
    grid-column: span 1;
}

.calendar-month {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.month-header {
    text-align: center;
    font-weight: 700;
    padding: 10px;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.calendar-table {
    background: white;
    padding: 10px;
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    text-align: center;
    font-size: 0.75rem;
}

.calendar-row.header-row {
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 5px;
}

.calendar-row span {
    padding: 4px 2px;
}

.calendar-row .weekend {
    color: #dc3545;
}

.calendar-row .festivo {
    background: #ffcccc;
    color: #dc3545;
    font-weight: 600;
    border-radius: 3px;
}

.calendar-row .jornada {
    background: #fff3cd;
    font-weight: 600;
    border-radius: 3px;
}


/* ==========================================================================
   14. MATERIAL
   ========================================================================== */

#material {
    background: var(--gray-100);
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.material-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.material-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.material-card h3 i {
    color: var(--secondary);
}


/* ==========================================================================
   15. HOME GALLERY SECTION
   ========================================================================== */

#galeria {
    background: var(--white);
}

.gallery-placeholder {
    background: var(--gray-100);
    border-radius: 15px;
    padding: 80px 40px;
    text-align: center;
}

.gallery-placeholder i {
    font-size: 4rem;
    color: var(--gray-200);
    margin-bottom: 20px;
}

.gallery-placeholder p {
    color: var(--gray-600);
}

/* Home page gallery grid (from HomeContent.astro) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-card-link {
    text-decoration: none;
    color: inherit;
}

.gallery-card-home {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 3rem;
}

.gallery-info {
    padding: 20px;
    text-align: center;
}

.gallery-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.gallery-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
}


/* ==========================================================================
   16. CONTACT
   ========================================================================== */

#contacto {
    background: var(--primary);
    color: var(--white);
}

#contacto .section-header h2 {
    color: var(--white);
}

#contacto .section-header p {
    color: rgba(255,255,255,0.8);
}

/* Contact logo */
.contact-logo-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 32px;
}

.contact-logo {
    width: min(640px, 60vw);
    height: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.contact-item h4 {
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   17. FOOTER
   ========================================================================== */

footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 40px;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* ==========================================================================
   18. JORNADA FORM ELEMENTS (from global.css)
   ========================================================================== */

.jornada-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jornada-select {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: var(--white);
    color: var(--gray-800);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='m0 0 2 2 2-2z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.jornada-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 140, 0.1);
}

.jornada-select:hover {
    border-color: var(--secondary);
}

.jornada-select:invalid {
    color: var(--gray-600);
}

.jornada-select option {
    padding: 8px;
    font-weight: 500;
}

.form-help-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
    margin-top: -4px;
}


/* ==========================================================================
   19. INSCRIPTION FORM - PAGE HEADER (from inscripcion.astro)
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 140px 20px 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* ==========================================================================
   20. INSCRIPTION FORM - FORM CONTAINER (from inscripcion.astro)
   ========================================================================== */

.form-container {
    max-width: 800px;
    margin: -40px auto 60px;
    padding: 0 20px;
}

.form-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-notice {
    background: var(--light);
    padding: 20px 30px;
    border-left: 4px solid var(--secondary);
    margin: 0;
}

.form-notice p {
    margin: 0;
    font-weight: 500;
    color: var(--primary);
}

.form-notice i {
    margin-right: 10px;
    color: var(--secondary);
}

.form-body {
    padding: 40px;
}

.form-section {
    margin-bottom: 35px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.form-group label .required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.help-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 5px;
}


/* ==========================================================================
   21. JORNADAS TABLE (from inscripcion.astro)
   ========================================================================== */

.jornadas-container {
    overflow-x: auto;
    margin-top: 15px;
}

.jornadas-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.jornadas-table th {
    background: var(--primary);
    color: var(--white);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jornadas-table th:first-child {
    text-align: center;
    width: 60px;
}

.jornadas-table th:nth-child(3) {
    text-align: center;
    width: 90px;
}

.jornadas-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: baseline;
}

.jornadas-table td:nth-child(3) {
    text-align: center;
}

.jornadas-table tbody tr:nth-child(even):not(.month-header) {
    background: var(--gray-100);
}

.jornadas-table tbody tr:hover:not(.month-header) {
    background: var(--light);
}

.jornadas-table .month-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.jornadas-table .month-header td {
    padding: 12px 15px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.jornadas-table .month-header i {
    margin-right: 8px;
}

.jornadas-table input[type="number"] {
    width: 65px;
    padding: 10px 8px;
    text-align: center;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.jornadas-table input[type="number"]:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.jornadas-table input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.jornadas-table input[type="text"]:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.jornadas-table input[type="text"]::placeholder {
    color: var(--gray-600);
    font-style: italic;
}

.jornada-num {
    font-weight: 700;
    color: var(--white);
    font-size: 0.85rem;
    text-align: center;
    background: var(--secondary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ==========================================================================
   22. FORM CHECKBOX & SUBMIT (from inscripcion.astro)
   ========================================================================== */

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.form-submit {
    text-align: center;
    padding-top: 20px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ==========================================================================
   23. TOAST NOTIFICATIONS (from InscriptionForm.astro)
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ==========================================================================
   24. ZONA HIGHLIGHT & AUTOBUS (from InscriptionForm.astro)
   ========================================================================== */

.zona-highlight {
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.zona-highlight i {
    font-size: 1.3em;
}

#autobus-container {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    display: flex;
    align-items: center;
    gap: 12px;
}

#autobus-container input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#autobus-container label {
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    cursor: pointer;
}

#zona-autobus {
    font-weight: 700;
    color: #667eea;
}


/* ==========================================================================
   25. CONFIRMATION PAGE (from confirmacion.astro)
   ========================================================================== */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.confirmation-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.confirmation-card {
    background: white;
    border-radius: 12px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 30px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-card h1 {
    color: #1e293b;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.lead {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-box {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 24px;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    text-align: left;
    margin-bottom: 40px;
}

.info-box i {
    color: #10b981;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    margin: 0 0 12px 0;
    color: #1e293b;
    line-height: 1.6;
}

.info-box p:last-child {
    margin-bottom: 0;
    color: #64748b;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Confirmation page btn-primary override (scoped to confirmation context) */
.confirmation-card .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    font-size: 1rem;
}

.confirmation-card .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}


/* ==========================================================================
   26. GALLERY LISTING PAGE (from galeria/index.astro)
   ========================================================================== */

.gallery-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 100px;
}

.gallery-page-container h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.loading, .error {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}

.error {
    color: #d32f2f;
}

.hidden {
    display: none !important;
}

/* Gallery listing card */
.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-image {
    height: 200px;
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    font-size: 3rem;
    color: #ccc;
}

.lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Gallery listing info (scoped context for listing page) */
.gallery-card .gallery-info {
    padding: 1.5rem;
}

.gallery-card .gallery-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--gray-800);
}

.date {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.count {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}


/* ==========================================================================
   27. GALLERY DETAIL PAGE (from galeria/[slug].astro)
   ========================================================================== */

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 140px;
    padding: 2rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary);
}

.gallery-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.gallery-date {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.gallery-count {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1rem;
}

.gallery-date i, .gallery-count i {
    margin-right: 8px;
}

.gallery-content {
    text-align: center;
    padding: 60px 20px;
}

/* Gallery detail placeholder (overrides the home gallery-placeholder for detail page) */
.gallery-content .gallery-placeholder {
    background: white;
    border-radius: 15px;
    padding: 80px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-content .gallery-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.gallery-content .gallery-placeholder h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.gallery-content .gallery-placeholder p {
    color: var(--gray-600);
    font-size: 1.1rem;
}


/* ==========================================================================
   28. DYNAMIC SECTIONS / MARKDOWN CONTENT
   ========================================================================== */

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.markdown-content {
    line-height: 1.8;
}

.markdown-content h2 {
    color: var(--primary);
    margin: 30px 0 15px;
}

.markdown-content h3 {
    color: var(--primary);
    margin: 25px 0 10px;
}

.markdown-content p {
    margin-bottom: 15px;
}

.markdown-content ul, .markdown-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.markdown-content li {
    margin-bottom: 8px;
}


/* ==========================================================================
   29. RESPONSIVE - GLOBAL (from global.css)
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-mascot {
        width: min(1100px, 90vw);
    }
}

@media (max-width: 1150px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    nav a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: var(--gray-100);
        border-radius: 6px;
        margin-top: 4px;
    }

    .nav-dropdown .nav-dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .objectives-grid,
    .calendar-info,
    .material-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-mascot {
        width: 90vw;
    }

    /* Form responsive */
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-body {
        padding: 25px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .jornadas-table {
        font-size: 0.8rem;
    }

    /* Gallery detail responsive */
    .gallery-header h1 {
        font-size: 2rem;
    }

    .gallery-content .gallery-placeholder {
        padding: 60px 30px;
    }

    .gallery-content .gallery-placeholder i {
        font-size: 3rem;
    }

    .gallery-content .gallery-placeholder h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    /* Confirmation page responsive */
    .confirmation-card {
        padding: 40px 24px;
    }

    .confirmation-card h1 {
        font-size: 2rem;
    }

    .success-icon {
        font-size: 60px;
    }

    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-block {
        padding: 25px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .partners-logos {
        gap: 30px;
    }

    .contact-logo {
        width: 70vw;
        height: auto;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    /* Jornada select responsive */
    .jornada-select {
        padding: 10px 12px;
        padding-right: 35px;
        font-size: 13px;
    }

    .form-help-text {
        font-size: 0.8rem;
    }

    .galleries-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   HOMEPAGE GALLERIES SECTION
   ========================================================================== */

.galleries-loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--gray-600);
}

.galleries-loading i {
    margin-right: 8px;
    color: var(--primary);
}

.galleries-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-600);
}

.galleries-empty i {
    font-size: 3rem;
    color: var(--accent);
    display: block;
    margin-bottom: 15px;
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-home-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.gallery-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-home-image {
    height: 180px;
    position: relative;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-home-card:hover .gallery-home-image img {
    transform: scale(1.05);
}

.gallery-home-placeholder {
    font-size: 2.5rem;
    color: var(--accent);
}

.gallery-home-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.gallery-home-info {
    padding: 1rem 1.25rem;
}

.gallery-home-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.gallery-home-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.gallery-home-meta i {
    margin-right: 4px;
    color: var(--secondary);
}

.galleries-view-all {
    text-align: center;
    margin-top: 2rem;
}

/* Gallery Password Modal */
.gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.gallery-modal-overlay.hidden {
    display: none;
}

.gallery-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: galleryModalIn 0.3s ease;
}

@keyframes galleryModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.gallery-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    line-height: 1;
}

.gallery-modal-close:hover {
    color: var(--gray-800);
}

.gallery-modal-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.gallery-modal h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.gallery-modal p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.gallery-modal input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 0.5rem;
}

.gallery-modal input[type="password"]:focus {
    border-color: var(--primary);
}

.gallery-password-error {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.gallery-password-error.hidden {
    display: none;
}

.gallery-modal button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
}


/* ==========================================================================
   SURVEY / CUESTIONARIOS
   ========================================================================== */

/* Access gate */
.survey-access-gate {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.survey-access-card {
    max-width: 480px;
    width: 100%;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(40,60,90,0.10);
    padding: 48px 36px;
    text-align: center;
}

.survey-access-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 2px 12px rgba(40,60,90,0.10);
}

.survey-access-icon i {
    font-size: 2.4rem;
    color: var(--white);
}

.survey-access-card h2 {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.survey-access-card > p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.survey-access-form .form-group {
    text-align: left;
    margin-bottom: 16px;
}

.survey-access-form label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.survey-access-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
}

.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239,68,68,0.15) !important;
}

/* Survey container */
.survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* Survey form header (inside form) */
.survey-form-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px 16px 0 0;
}

.survey-form-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.survey-form-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.survey-header {
    text-align: center;
    margin-bottom: 32px;
}

.survey-header h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.survey-header p {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 4px;
}

/* Survey form */
.survey-form {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(10,77,140,0.08);
    padding: 0;
}

.survey-section {
    padding: 28px 32px;
    border-bottom: 1px solid var(--gray-200);
}

.survey-section:last-of-type {
    border-bottom: none;
}

.survey-section-intro {
    background: var(--gray-50);
}

.survey-section h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.section-number {
    color: var(--secondary);
    font-weight: 800;
}

.survey-instruction {
    padding: 14px 32px;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-style: normal;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.survey-instruction i {
    color: var(--secondary);
}

.survey-scale-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 500;
    border: 1px solid rgba(10,77,140,0.1);
}

.scale-item {
    white-space: nowrap;
}

/* Questions */
.survey-question {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.survey-question:last-child {
    border-bottom: none;
}

.survey-question:hover {
    background: #fafbfc;
    border-radius: 8px;
}

.question-text {
    color: var(--gray-800);
    font-size: 0.93rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.question-invalid {
    background: #fef2f2 !important;
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
    border-left: 3px solid #ef4444;
}

/* Radio groups */
.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-group-5 {
    gap: 8px;
}

.radio-option {
    display: flex!important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    user-select: none;
    min-width: 56px;
    text-align: center;
    background: var(--white);
}

.radio-option:hover {
    border-color: var(--secondary);
    background: #f0f9ff;
}

.radio-option:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(10,77,140,0.15);
    outline: none;
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: var(--primary);
    font-weight: 700;
}

.radio-option:has(input:checked) {
    border-color: var(--primary);
    background: #e8f4fd;
}

.radio-label {
    cursor: pointer;
}

.radio-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.checkbox-group .radio-option {
    width: 100%;
    max-width: 320px;
    justify-content: flex-start;
    text-align: left;
}

/* Form rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.required {
    color: #ef4444;
}

/* Form inputs in survey */
.survey-form .form-group {
    margin-bottom: 16px;
}

.survey-form label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.survey-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--gray-800);
    background: var(--white);
}

.survey-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,77,140,0.1);
}

.survey-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Footer / submit area */
.survey-footer {
    padding: 28px 32px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
    border-radius: 0 0 16px 16px;
}

.survey-privacy {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.survey-submit-btn {
    padding: 14px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    min-width: 240px;
}

/* Success card */
.survey-success {
    padding: 40px 20px;
}

.survey-success-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(40,60,90,0.10);
    padding: 48px 36px;
    text-align: center;
}

.survey-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.survey-success-icon i {
    font-size: 2.4rem;
    color: var(--white);
}

.survey-success-card h2 {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.survey-success-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Toast animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .survey-access-gate {
        padding: 100px 16px 40px;
    }

    .survey-access-card {
        padding: 32px 24px;
    }

    .survey-container {
        padding: 100px 12px 40px;
    }

    .survey-section {
        padding: 20px 18px;
    }

    .survey-header h1 {
        font-size: 1.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 6px;
    }

    .radio-group-5 {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .radio-option {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .survey-scale-legend {
        font-size: 0.75rem;
        gap: 8px;
    }

    .survey-instruction {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .survey-footer {
        padding: 20px 18px;
    }

    .survey-submit-btn {
        width: 100%;
        min-width: auto;
    }

    .survey-toast {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
    }
}

/* ===== News Home Section ===== */
.news-home-section {
    background: var(--gray-100);
}

.news-home-loading {
    text-align: center;
    padding: 40px;
    color: var(--primary);
    font-size: 1.1rem;
}

.news-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-home-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 77, 140, 0.15);
}

.news-home-image {
    height: 200px;
    position: relative;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-home-card:hover .news-home-image img {
    transform: scale(1.05);
}

.news-home-placeholder {
    font-size: 3rem;
    color: var(--accent);
}

.news-home-info {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-home-date {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.news-home-date i {
    margin-right: 4px;
}

.news-home-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: var(--primary);
    line-height: 1.4;
}

.news-home-intro {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-home-readmore {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 12px;
    display: inline-block;
}

.news-home-readmore i {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.news-home-card:hover .news-home-readmore i {
    transform: translateX(5px);
}

.news-home-viewall {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .news-home-grid {
        grid-template-columns: 1fr;
    }

    .news-home-image {
        height: 180px;
    }
}
