* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #2c3e50;
    position: relative;
    overflow-x: hidden;
}

/* Animaciones de fondo */
.paw-print {
    position: fixed;
    font-size: 24px;
    color: rgba(22, 163, 74, 0.15);
    animation: float 20s infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(10deg); }
    50% { transform: translateY(-60px) rotate(-10deg); }
    75% { transform: translateY(-30px) rotate(5deg); }
}

.paw-1 { top: 10%; left: 10%; animation-delay: 0s; }
.paw-2 { top: 20%; right: 15%; animation-delay: 2s; font-size: 32px; }
.paw-3 { top: 60%; left: 5%; animation-delay: 4s; font-size: 28px; }
.paw-4 { top: 70%; right: 10%; animation-delay: 6s; }
.paw-5 { top: 40%; left: 20%; animation-delay: 8s; font-size: 20px; }
.paw-6 { top: 50%; right: 25%; animation-delay: 10s; font-size: 26px; }
.paw-7 { top: 80%; left: 30%; animation-delay: 12s; }
.paw-8 { top: 30%; right: 5%; animation-delay: 14s; font-size: 30px; }

/* Iconos grandes */
.big-icon {
    position: fixed;
    color: rgba(22, 163, 74, 0.08);
    animation: floatBig 25s infinite;
    z-index: 0;
}

@keyframes floatBig {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-40px) rotate(-15deg); }
    50% { transform: translateY(-80px) rotate(15deg); }
    75% { transform: translateY(-40px) rotate(-10deg); }
}

.big-1 { top: 5%; left: 5%; font-size: 80px; animation-delay: 0s; }
.big-2 { top: 15%; right: 8%; font-size: 100px; animation-delay: 3s; }
.big-3 { bottom: 10%; left: 10%; font-size: 90px; animation-delay: 6s; }
.big-4 { bottom: 15%; right: 12%; font-size: 85px; animation-delay: 9s; }
.big-5 { top: 50%; left: 3%; font-size: 95px; animation-delay: 12s; }
.big-6 { top: 45%; right: 5%; font-size: 88px; animation-delay: 15s; }

/* Patitas gigantes con sombra */
.giant-paw {
    position: fixed;
    color: rgba(22, 163, 74, 0.12);
    animation: floatGiant 30s infinite;
    z-index: 0;
    filter: drop-shadow(0 8px 16px rgba(22, 163, 74, 0.2));
}

@keyframes floatGiant {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-50px) rotate(-20deg) scale(1.1); }
    50% { transform: translateY(-100px) rotate(20deg) scale(0.9); }
    75% { transform: translateY(-50px) rotate(-15deg) scale(1.05); }
}

.giant-1 { top: 8%; left: 15%; font-size: 140px; animation-delay: 0s; }
.giant-2 { top: 25%; right: 18%; font-size: 160px; animation-delay: 5s; }
.giant-3 { bottom: 12%; left: 20%; font-size: 150px; animation-delay: 10s; }
.giant-4 { bottom: 20%; right: 15%; font-size: 145px; animation-delay: 15s; }
.giant-5 { top: 55%; left: 8%; font-size: 155px; animation-delay: 20s; }
.giant-6 { top: 60%; right: 10%; font-size: 148px; animation-delay: 25s; }

/* Patitas INMENSAS con interacción */
.mega-paw {
    position: fixed;
    color: rgba(22, 163, 74, 0.15);
    animation: megaFloat 35s infinite;
    z-index: 0;
    filter: drop-shadow(0 12px 24px rgba(22, 163, 74, 0.25));
    transition: all 0.3s ease;
}

@keyframes megaFloat {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-80px) translateX(30px) rotate(-25deg) scale(1.15); }
    50% { transform: translateY(-150px) translateX(-30px) rotate(25deg) scale(0.85); }
    75% { transform: translateY(-80px) translateX(20px) rotate(-20deg) scale(1.1); }
}

.mega-1 { top: 5%; left: 25%; font-size: 220px; animation-delay: 0s; }
.mega-2 { top: 10%; right: 20%; font-size: 250px; animation-delay: 7s; }
.mega-3 { bottom: 8%; left: 15%; font-size: 240px; animation-delay: 14s; }
.mega-4 { bottom: 5%; right: 25%; font-size: 230px; animation-delay: 21s; }
.mega-5 { top: 50%; left: 5%; font-size: 260px; animation-delay: 28s; }

/* Patitas medianas */
.medium-paw {
    position: fixed;
    color: rgba(22, 163, 74, 0.18);
    animation: mediumFloat 20s infinite;
    z-index: 0;
    filter: drop-shadow(0 6px 12px rgba(22, 163, 74, 0.2));
}

@keyframes mediumFloat {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-40px) translateX(-20px) rotate(15deg); }
    66% { transform: translateY(-70px) translateX(20px) rotate(-15deg); }
}

.medium-1 { top: 18%; left: 12%; font-size: 110px; animation-delay: 2s; }
.medium-2 { top: 35%; right: 8%; font-size: 120px; animation-delay: 6s; }
.medium-3 { bottom: 25%; left: 18%; font-size: 115px; animation-delay: 10s; }
.medium-4 { bottom: 35%; right: 12%; font-size: 108px; animation-delay: 14s; }
.medium-5 { top: 65%; left: 25%; font-size: 118px; animation-delay: 18s; }
.medium-6 { top: 40%; right: 22%; font-size: 112px; animation-delay: 4s; }

.logo-circular {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #16a34a;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    margin-bottom: 16px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(22, 163, 74, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(21, 128, 61, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(22, 163, 74, 0.05) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    padding: 40px 0;
    background: white;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8eef5;
    animation: fadeInDown 0.6s ease;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 118, 210, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    color: #16a34a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header p {
    color: #15803d;
    font-size: 18px;
    font-weight: 500;
}

.form-section, .payment-section, .success-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8eef5;
    animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #16a34a;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8eef5;
}

.form-group {
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }
.form-group:nth-child(8) { animation-delay: 0.45s; }
.form-group:nth-child(9) { animation-delay: 0.5s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8eef5;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #16a34a;
    background: white;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #f44336;
}

.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 16px;
    border-radius: 10px;
    margin-top: 12px;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-group label:hover {
    background: #f8f9fa;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #16a34a;
}

.checkbox-group input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkbox-group a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-primary {
    background: #16a34a;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary i {
    margin-right: 8px;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 3px dashed #16a34a;
    border-radius: 12px;
    background: #f0fdf4;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    background: #dcfce7;
    border-color: #15803d;
    transform: translateY(-2px);
}

.file-upload-label i {
    font-size: 48px;
    color: #16a34a;
    margin-bottom: 12px;
}

.file-upload-text {
    font-size: 16px;
    color: #16a34a;
    font-weight: 600;
}

.file-upload-name {
    display: none;
    font-size: 14px;
    color: #15803d;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 16px;
    background: #dcfce7;
    border-radius: 6px;
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .header p {
        font-size: 16px;
    }
    
    .form-section, .payment-section, .success-section {
        padding: 25px 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 300px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    .file-upload-label {
        padding: 30px 15px;
    }
    
    .file-upload-label i {
        font-size: 36px;
    }
    
    .success-message {
        padding: 40px 20px;
    }
    
    .success-icon i {
        font-size: 60px;
    }
    
    .success-message h2 {
        font-size: 22px;
    }
    
    .success-message p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .form-section, .payment-section, .success-section {
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .success-message {
        padding: 30px 15px;
    }
    
    .success-icon i {
        font-size: 50px;
    }
    
    .success-message h2 {
        font-size: 20px;
    }
    
    .success-message p {
        font-size: 14px;
    }
}

.btn-secondary {
    background: #16a34a;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #16a34a;
    color: white;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close {
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 14px;
    color: #2c3e50;
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
    color: #16a34a;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.modal-body h1 {
    font-size: 20px;
    border-bottom: 2px solid #16a34a;
    padding-bottom: 8px;
}

.modal-body h2 {
    font-size: 18px;
}

.modal-body h3 {
    font-size: 16px;
}

.modal-body p {
    margin-bottom: 12px;
    text-align: justify;
}

.modal-body strong {
    color: #16a34a;
    font-weight: 600;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 4px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e8eef5;
    background: #fafbfc;
}

#scroll-message {
    color: #f44336;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

.payment-info {
    background: #f0fdf4;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #16a34a;
}

.success-message {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    margin-bottom: 24px;
    animation: successPop 0.6s ease;
}

.success-icon i {
    font-size: 80px;
    color: #16a34a;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    color: #16a34a;
    margin-bottom: 16px;
    font-size: 28px;
    border: none;
    padding: 0;
}

.success-message p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.success-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e8eef5;
}

.redirect-text {
    font-size: 14px;
    color: #16a34a;
    font-weight: 600;
}

.redirect-text span {
    font-size: 18px;
    font-weight: 700;
    color: #15803d;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-nav {
    width: 250px;
    background: #1976d2;
    color: white;
    padding: 20px;
}

.admin-nav h2 {
    color: white;
    margin-bottom: 30px;
}

.admin-nav ul {
    list-style: none;
}

.admin-nav ul li {
    margin-bottom: 10px;
}

.admin-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-nav ul li a:hover,
.admin-nav ul li a.active {
    background: #1565c0;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: white;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pendiente {
    background: #fff3cd;
    color: #856404;
}

.badge-aprobado {
    background: #d4edda;
    color: #155724;
}

.badge-rechazado {
    background: #f8d7da;
    color: #721c24;
}

.btn-small {
    background: #1976d2;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.detail-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-card h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

.settings-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: monospace;
}

.settings-section small {
    color: #666;
    font-size: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
