:root {
    --primary-color: #2D3436;
    --secondary-color: #636E72;
    --accent-color: #00B894;
    --text-color: #2D3436;
    --background-color: #DFE6E9;
    --white: #ffffff;
    --success: #00B894;
    --error: #D63031;
    --gradient-1: #6C5CE7;
    --gradient-2: #a363d9;
    --gradient-3: #D63031;
}

/* Estilos generales */
body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--background-color);
    padding-top: 0; /* Eliminamos el padding-top del body */
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    padding-top: 76px; /* Altura del navbar para evitar solapamiento */
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Contenedor principal y fondo */
.main-container {
    flex: 1;
    position: relative;
    padding-top: 2rem;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: -1;
    opacity: 0.8;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Secciones de contenido */
.content-section {
    display: none;
    min-height: calc(100vh - 4rem);
    padding: 3rem 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
}

/* Ajuste específico para la sección de envío */
#enviar.content-section {
    padding-top: 6rem;
}

/* Sección de inicio */
.hero-content {
    padding: 4rem 0 4rem;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Características de la página principal */
.hero-features {
    margin-bottom: 4rem;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.hero-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-feature i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-feature p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Sección de transferencia */
.transfer-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.transfer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.8);
}

.upload-zone.highlight {
    border-color: #2196f3;
    background: #e3f2fd;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    font-size: 0;
}

.upload-message {
    font-size: 18px;
    margin-bottom: 10px;
    color: #666;
}

.upload-limit {
    font-size: 0.8rem;
}

.limits-info {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.progress-container {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-container.error {
    background: #ffebee;
}

.progress-container.complete {
    background: #e8f5e9;
}

.file-info {
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #2196f3;
    transition: width 0.3s ease;
}

.progress-container.error .progress-bar::after {
    background: #f44336;
}

.progress-container.complete .progress-bar::after {
    background: #4caf50;
}

.progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.progress-container.error .progress-text {
    color: #f44336;
}

.progress-container.complete .progress-text {
    color: #4caf50;
}

/* Lista de archivos */
.list-group-item {
    border: none;
    background: rgba(255,255,255,0.8);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(255,255,255,0.95);
    transform: translateX(5px);
}

/* Detalles de transferencia */
.transfer-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.form-label {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.form-control {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--primary-color);
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-select {
    padding: 0.5rem 1rem;
    height: auto;
    font-size: 0.9rem;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.btn-primary {
    padding: 0.5rem 1rem;
}

/* Sección Acerca de */
.about-content {
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item {
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.95);
    border-radius: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.feature-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    background: rgba(0,184,148,0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 40px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Botones */
.btn-primary {
    background: var(--accent-color);
    border: none;
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,184,148,0.2);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 2rem;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i, .footer-gdpr i {
    margin-right: 0.75rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-gdpr {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    border-radius: 1rem;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Contenido de páginas legales */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(20px);
}

.content-card h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.content-card p, .content-card ul {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.content-card ul {
    padding-left: 1.5rem;
}

.content-card li {
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
    
    .main-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-content {
        padding: 4rem 0;
    }
    
    .hero-feature {
        margin-bottom: 1rem;
    }
    
    .upload-zone {
        max-width: 200px;
        margin: 0 auto;
        min-height: 100px;
        padding: 15px;
    }
    
    .upload-message {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .upload-limit {
        font-size: 12px;
    }
    
    .feature-item {
        margin-bottom: 1rem;
    }
    
    .transfer-card {
        padding: 1rem;
    }

    .list-group-item {
        padding: 0.5rem;
        font-size: 14px;
        margin-bottom: 0.25rem;
    }

    /* Nuevos ajustes para móvil */
    #enviar.content-section {
        padding-top: 4rem;
    }

    .transfer-details {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .form-control {
        padding: 0.5rem;
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

    .form-label {
        margin-bottom: 0.25rem;
        font-size: 14px;
    }

    .btn-primary {
        padding: 0.5rem 1.5rem;
        font-size: 14px;
        margin-top: 0.25rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact-item, .footer-gdpr {
        justify-content: center;
    }
    
    .footer-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Botón de cierre */
.close-section {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.close-section:hover {
    transform: scale(1.1);
    color: var(--error);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.close-section i {
    font-size: 20px;
    line-height: 1;
}

/* Ajustar tamaño de los iconos en el formulario */
.upload-message i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-message p {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

/* Ajustar reCAPTCHA */
.g-recaptcha {
    transform: scale(0.8);
    transform-origin: 0 0;
    margin-bottom: 0.5rem;
}

/* Ajustar descripciones */
.form-text {
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

/* Ajustar área de mensaje */
textarea.form-control {
    padding: 0.5rem;
    min-height: 60px;
}

/* Media queries para pantallas más pequeñas */
@media (max-width: 992px) {
    .transfer-card {
        padding: 1rem;
    }
    
    .upload-zone {
        padding: 15px;
    }
    
    .upload-message i {
        font-size: 2rem;
    }
    
    .g-recaptcha {
        transform: scale(0.7);
        transform-origin: 0 0;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 95%;
    }
    
    .upload-zone {
        padding: 10px;
    }
    
    .upload-message p {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }
    
    .upload-limit {
        font-size: 0.7rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-control, .form-select {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }
}

/* Estilos para la visualización compacta de archivos */
.file-count {
    font-size: 0.9rem;
    color: #333;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 5px 10px;
    display: inline-block;
}

.selected-files {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 5px;
    background: #fcfcfc;
}

.file-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.85rem;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.file-size {
    color: #777;
    font-size: 0.8rem;
}

.total-size {
    font-size: 0.8rem;
    color: #555;
    text-align: right;
}

/* Ajustar tamaño del área de carga */
@media (min-width: 768px) {
    .upload-zone {
        min-height: 120px;
    }
}

@media (max-width: 767px) {
    .upload-zone {
        min-height: 100px;
    }
    
    .selected-files {
        max-height: 80px;
    }
}

/* Animación de carga para subida de archivos */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loading-container {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.loading-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 184, 148, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

.loading-spinner.completed {
    animation: none;
    border-color: var(--accent-color);
    position: relative;
}

.loading-spinner.completed::before {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: var(--accent-color);
}

.loading-spinner.error {
    animation: none;
    border-color: #dc3545;
    position: relative;
}

.loading-spinner.error::before {
    content: "\2717";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #dc3545;
}

.loading-container.error {
    border-left: 4px solid #dc3545;
}

.loading-container.error .loading-spinner {
    border-color: #dc3545;
    border-right-color: transparent;
    animation: none;
}

.loading-container .status-message {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
}

.loading-container .btn {
    min-width: 120px;
    font-weight: 500;
    margin-top: 15px;
    margin-left: 5px;
    margin-right: 5px;
}

.loading-progress {
    margin-top: 1rem;
}

.loading-text {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--primary-color);
}

.progress {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-top: 1rem;
}

.progress-bar {
    background-color: var(--accent-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

.progress-percentage {
    font-weight: bold;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.upload-notice, .stagnation-notice {
    font-size: 0.9rem;
    text-align: left;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
}

.upload-notice i, .stagnation-notice i {
    font-size: 1rem;
}

.stagnation-notice {
    border-left: 4px solid #ffc107;
    animation: pulse 2s infinite;
}

.upload-notice {
    border-left: 4px solid #17a2b8;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
} 