:root {
    --primary: #05F2DB;
    --secondary: #00BFA5;
    --accent: #F2BB16;
    --bg: #f8f9fa;
    --text: #2c3e50;
    --dark: #1a1a1a;
    --light-gray: #ecf0f1;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 249, 250, 0.6) 100%),
        url('../images/Hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(248, 249, 250, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Navbar Moderno */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.navbar-right {
    margin-left: auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(5, 242, 219, 0.4));
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.1);
}

.brand-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, #00E5CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 2px;
}

.btn-trabajadores {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(5, 242, 219, 0.3);
    white-space: nowrap;
}

.btn-trabajadores:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 242, 219, 0.5);
}

/* Modal para Login de Trabajadores */
.modal-login {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background-color 0.3s ease-out, backdrop-filter 0.3s ease-out;
}

.modal-login.modal-active {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-login-content {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    /* Centrar el modal exactamente en el centro de la pantalla */
    margin: 0 auto;
    padding: 40px 45px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal-login.modal-active .modal-login-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.close-modal-login {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-login:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.modal-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-login-header .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-login-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
}

.modal-login-header p {
    margin: 10px 0 0 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
    border: none;
    padding: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-section p {
    font-size: 1.2rem;
    color: #2c3e50;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.main-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.main-cards-wrapper.search-active {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cards-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cards-container .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.search-container input {
    width: 100%;
    padding: 16px 18px;
    font-size: 1rem;
    box-sizing: border-box;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.search-container input:hover {
    border-color: #d0d0d0;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(242, 187, 22, 0.1);
    background: white;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(5, 242, 219, 0.3);
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 242, 219, 0.5);
}

.btn-clear-search {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdc3c7 100%);
    color: var(--text);
    padding: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-clear-search:hover {
    background: #95a5a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.search-buttons {
    display: flex;
    gap: 15px;
}

.search-buttons button {
    flex: 1;
}

.ticket-result {
    background: linear-gradient(135deg, #f9f9f9 0%, #ecf0f1 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    border-left: 5px solid var(--primary);
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    border-left-width: 5px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-result.show {
    display: block;
}

.ticket-result h3 {
    margin-top: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 1.3rem;
}

.filter-section {
    margin-bottom: 20px;
    padding: 18px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
}

.filter-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
}

.filter-section select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    box-sizing: border-box;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
}

.filter-section select:hover {
    border-color: #d0d0d0;
}

.filter-section select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(242, 187, 22, 0.1);
    background: white;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.ticket-card-result {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    border-left-width: 5px;
    transition: all 0.3s ease;
}

.ticket-card-result:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(242, 187, 22, 0.15);
}

.ticket-card-result h4 {
    margin: 0 0 15px 0;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
}

.ticket-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    padding: 12px 14px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ecf0f1 100%);
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.info-item strong {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-search {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 5px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-pendiente-search {
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
    color: #d35400;
    border: 1px solid #f39c12;
}

.status-en-curso-search {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid #2196f3;
}

.status-finalizado-search {
    background: linear-gradient(135deg, #e9f7ef 0%, #d5f4e6 100%);
    color: #1e8449;
    border: 1px solid #27ae60;
}

.no-ticket-found {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    padding: 20px 25px;
    border-radius: 12px;
    margin-top: 25px;
    border-left: 5px solid #c62828;
    display: none;
    font-weight: 600;
    animation: shake 0.5s ease-in-out;
}

.no-ticket-found.show {
    display: block;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    min-height: 420px;
}


.card-client {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-client h2 {
    width: 100%;
    margin-bottom: 15px;
}

.card-client .card-description {
    margin-bottom: 25px;
}

.card-client .btn-client {
    max-width: 100%;
}


.card-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 15px;
    font-size: 1.6rem;
    color: var(--text);
    text-align: center;
    font-weight: 700;
    position: relative;
}


.card-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: 0.3px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

input:hover {
    border-color: #d0d0d0;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 242, 219, 0.15);
    background: white;
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(5, 242, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 242, 219, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-client {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(5, 242, 219, 0.3);
}

.btn-client:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 242, 219, 0.5);
}

.error-message {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #c62828;
    display: none;
    font-size: 0.9rem;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Footer Corporativo */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 40px 20px 20px;
    text-align: center;
    margin-top: auto;
    border-top: 4px solid var(--primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 15px rgba(5, 242, 219, 0.4));
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #7f8c8d;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: #95a5a6;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px 0;
    color: #7f8c8d;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #e0e0e0;
}

.divider span {
    padding: 0 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .main-cards-wrapper {
        grid-template-columns: 1fr;
    }
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    .navbar-right {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    .logo-section {
        min-width: 0;
    }
    .brand-text {
        min-width: 0;
    }
    .brand-text h1 {
        font-size: 1.5rem;
    }
    .hero-section h2 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .card {
        padding: 30px;
    }
    .footer-info {
        flex-direction: column;
        text-align: center;
    }
    .modal-login-content {
        padding: 28px 24px;
        width: 95%;
        margin: 10px;
    }
    .modal-login-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }
    .logo {
        width: 48px;
        height: 48px;
    }
    .brand-text h1 {
        font-size: 1.25rem;
    }
    .brand-text p {
        font-size: 0.8rem;
    }
    .hero-section {
        padding: 24px 16px;
    }
    .hero-section h2 {
        font-size: 1.6rem;
    }
    .hero-section p {
        font-size: 0.95rem;
    }
    .modal-login-content {
        padding: 24px 18px;
        width: 100%;
        max-width: none;
        margin: 15px;
        border-radius: 16px;
    }
    .modal-login-header .card-icon {
        font-size: 2.5rem;
    }
    .footer-section {
        min-width: 100%;
    }
}

