/* Video Presupuesto Online - Sumur Digital Styled */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #667eea;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.brand-info h1 {
    font-size: 2.2em;
    margin-bottom: 5px;
    font-weight: 700;
}

.brand-info .tagline {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

.contact-info {
    text-align: right;
    font-size: 0.9em;
    opacity: 0.9;
}

/* Navigation */
.nav-bar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-radius: 15px;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-content a:hover,
.nav-content a.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-title h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-title p {
    color: #7f8c8d;
    font-size: 1.3em;
    font-weight: 300;
}

/* Alerts */
.alert {
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    font-weight: 500;
    border: none;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-success::before {
    background: #28a745;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-error::before {
    background: #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-info::before {
    background: #17a2b8;
}

/* Link result alert */
.link-result {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 30px;
    text-align: center;
}

.link-result h3 {
    color: #155724;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.link-display {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.link-display input {
    flex: 1;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #28a745;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
    font-family: monospace;
}

.link-display .btn {
    flex-shrink: 0;
}

/* Form sections */
.form-section {
    background: white;
    padding: 40px;
    margin-bottom: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid #e9ecef;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.6em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2::before {
    content: '';
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.form-section h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

/* Delivery method selector */
.delivery-method-selector {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 250px;
    display: block;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #667eea;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: #667eea;
    background: linear-gradient(135deg, #e3f2fd 0%, #d4e5ff 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.radio-label .icon {
    font-size: 2em;
    flex-shrink: 0;
}

.radio-label .text strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.radio-label .text small {
    color: #6c757d;
    font-size: 0.9em;
}

/* Email customization */
.email-customization {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Form groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input[type="file"] {
    padding: 12px 15px;
    background: #f8f9fa;
    border-style: dashed;
}

.form-group input[type="file"]:hover {
    border-color: #667eea;
    background: #e3f2fd;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}

/* Form row for side-by-side inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .delivery-method-selector {
        flex-direction: column;
    }
    
    .radio-option {
        min-width: auto;
    }
}

/* Required field indicator */
.required {
    color: #e74c3c;
    font-size: 1.2em;
}

/* Video recording section */
#video_record_section {
    margin-top: 25px;
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    position: relative;
}

#preview, #recorded {
    border: 3px solid #667eea;
    border-radius: 12px;
    margin: 15px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recording-controls {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.recording-info {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #2196f3;
}

/* Recording status indicator */
.recording-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Processing progress */
.processing-progress {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(149, 165, 166, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    display: block;
    width: 100%;
    margin-top: 25px;
    font-weight: 700;
}

/* Progress bar */
#uploadProgress {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

.progress-text {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: #495057;
    font-size: 1.1em;
}

#uploadInfo {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#uploadInfo span {
    white-space: nowrap;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9em;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

/* Upload Messages */
.upload-message {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* Upload attempt counter */
.upload-attempt {
    font-size: 0.85em;
    opacity: 0.8;
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Powered by Sumur Digital */
.powered-by {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #uploadInfo {
        flex-direction: column;
        align-items: center;
    }
    
    #uploadInfo span {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .upload-message {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    
    .progress-bar {
        height: 25px;
    }
    
    .link-display {
        flex-direction: column;
    }
    
    .link-display input {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .page-title h1 {
        font-size: 2em;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .recording-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Animation for form sections */
.form-section {
    animation: slideInUp 0.6s ease-out;
}

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

/* Loading spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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