:root {
    --azul: #219BEF;
    --azul-oscuro: #176BAA;
    --azul-claro: #61B7F1;
    --azul-hover: #1a7cc0;
    --azul-extra-claro: #EBF6FF;
    --negro: #000000;
    --gris-claro: #f5f5f5;
    --gris-oscuro: #333333;
    --blanco: #ffffff;
    --sombra-suave: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transicion: all 0.3s ease;
    --gradiente-primario: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
    --gradiente-secundario: linear-gradient(135deg, #5D26C1 0%, #a17fe0 100%);
    --gradiente-oscuro: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #219BEF, #176BAA, #61B7F1);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.9;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--negro);
    background-color: var(--blanco);
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--azul);
    background: rgba(33, 155, 239, 0.1);
}

.feedback-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--blanco);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: var(--blanco);
    font-size: 1.2rem;
    opacity: 0.9;
}

.rating-section {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 2rem;
}

.rating-section h2 {
    color: var(--negro);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.stars-container {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.star {
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ddd;
}

.star:hover,
.star.active {
    color: #FFD700;
    transform: scale(1.2) rotate(5deg);
}

.rating-text {
    color: var(--gris-oscuro);
    font-weight: 500;
}

.feedback-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--negro);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 4px rgba(33, 155, 239, 0.1);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.file-upload-label {
    display: block;
    padding: 2rem;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--azul);
    background: rgba(33, 155, 239, 0.05);
}

.file-upload-label span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.file-upload-label small {
    color: var(--gris-oscuro);
}

.file-upload-input {
    display: none;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-preview img:hover {
    transform: scale(1.05);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blanco);
    background: var(--gradiente-primario);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 155, 239, 0.3);
}

.submit-btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover .submit-btn-bg {
    left: 100%;
}

.recent-feedback {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: var(--negro);
    font-size: 1.8rem;
}

.feedback-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--gris-oscuro);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--azul);
    color: var(--blanco);
}

.feedback-list {
    display: grid;
    gap: 1.5rem;
}

.feedback-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feedback-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.feedback-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--azul);
}

.feedback-rating {
    color: #FFD700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-type {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feedback-type.opinion { background: rgba(33, 155, 239, 0.1); color: var(--azul); }
.feedback-type.sugerencia { background: rgba(46, 125, 50, 0.1); color: #2E7D32; }
.feedback-type.queja { background: rgba(198, 40, 40, 0.1); color: #C62828; }
.feedback-type.mejora { background: rgba(21, 101, 192, 0.1); color: #1565C0; }

.feedback-content {
    color: var(--gris-oscuro);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feedback-date {
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    opacity: 0.8;
}


.social-link {
    color: var(--blanco);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 60px 20px 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-section h3 {
    margin-bottom: 25px;
    color: var(--azul-claro);
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--azul);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section a {
    color: var(--blanco);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transicion);
    display: inline-block;
    padding: 5px 0;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--azul-claro);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .feedback-container {
        margin: 1rem auto;
    }

    h1 {
        font-size: 2rem;
    }

    .stars {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feedback-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem;
    }

    .logo {
        height: 30px;
    }

    .nav-links {
        gap: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .stars {
        font-size: 1.8rem;
    }

    .rating-section,
    .feedback-form,
    .recent-feedback {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}