/* ImagineTech - Página en Construcción - Estilos CSS */

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* Header fijo */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.header-logo {
    height: 50px;
    width: auto;
    filter: none;
    flex-shrink: 0;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.header-text {
    text-align: right;
}

.header-title {
    font-size: 2rem;
    margin: 0;
    color: #2980b9;
    font-weight: 900;
}

.main-title {
    font-size: 2rem !important;
    margin: 0 !important;
    color: #2980b9 !important;
    font-weight: 900 !important;
    display: block !important;
    text-align: right !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    animation: titleGlow 3s ease-in-out infinite alternate !important;
    text-shadow: 0 0 10px rgba(41, 128, 185, 0.3) !important;
}

@keyframes titleGlow {
    0% {
        color: #2980b9;
        text-shadow: 0 0 10px rgba(41, 128, 185, 0.3);
    }
    100% {
        color: #3498db;
        text-shadow: 0 0 20px rgba(52, 152, 219, 0.6), 0 0 30px rgba(52, 152, 219, 0.3);
    }
}

.header-subtitle {
    font-size: 1rem;
    color: #555;
    margin: 5px 0 0 0;
    font-weight: 400;
}

/* Espaciador para compensar el header fijo */
.spacer {
    height: 120px;
}

.container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.construction-message-inside {
    background: rgba(52, 152, 219, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
    color: #2c3e50;
}

.construction-message-inside h3 {
    color: #2980b9;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.construction-message-inside p {
    color: #34495e;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #333;
}

.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.submit-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .fixed-header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .spacer {
        height: 140px;
    }
    
    .contact-form {
        padding: 25px;
        margin: 0 20px;
    }
    
    .container {
        padding: 10px;
        min-height: calc(100vh - 140px);
    }
}

/* Campo Honeypot (oculto para humanos) */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Captcha matemático */
.captcha-group {
    background: rgba(52, 152, 219, 0.05);
    border: 2px dashed rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2980b9;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.captcha-group input[type="number"] {
    width: 130px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    border: 2px solid #3498db;
    padding: 12px;
}

.captcha-group input[type="number"]:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
}

.captcha-group label {
    color: #2980b9 !important;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Mensajes de estado */
.status-message {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.status-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.status-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Popup para resultados */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.popup-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.4s ease-out;
}

.popup-content {
    padding: 40px 30px;
    text-align: center;
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconBounce 0.6s ease-out 0.2s both;
}

.popup-icon.success {
    color: #27ae60;
}

.popup-icon.error {
    color: #e74c3c;
}

.popup-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.popup-content p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-close-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.popup-close-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Animaciones del popup */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive para captcha */
@media (max-width: 480px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .captcha-question {
        margin-bottom: 10px;
    }
    
    .captcha-group input[type="number"] {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }
    
    .popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .popup-content {
        padding: 30px 20px;
    }
    
    .popup-content h3 {
        font-size: 1.5rem;
    }
    
    .popup-content p {
        font-size: 1rem;
    }
}

/* ===== BANNER FLOTANTE ORATIC ===== */
.oratic-floating-banner {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    max-height: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.oratic-floating-banner:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-content {
    padding: 25px;
    text-align: center;
}

.floating-image {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.floating-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.floating-text h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.floating-text p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.oratic-title {
    font-size: 1.1rem;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
    text-align: center;
}

.floating-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-decoration: none;
    color: white;
}

/* Responsive para el banner flotante */
@media (max-width: 1024px) {
    .oratic-floating-banner {
        left: 10px;
        width: 280px;
    }
}

@media (max-width: 768px) {
    .oratic-floating-banner {
        position: static;
        width: 100%;
        max-width: 350px;
        margin: 40px auto 0;
        transform: none;
        left: auto;
        top: auto;
    }
    
    .oratic-floating-banner:hover {
        transform: scale(1.02);
    }
    
    .floating-content {
        padding: 25px;
    }
    
    .floating-img {
        max-height: 200px;
    }
    
    .floating-text h4 {
        font-size: 1.2rem;
    }
    
    .floating-text p {
        font-size: 1rem;
    }
    
    .floating-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .oratic-floating-banner {
        margin: 30px 20px 0;
        max-width: none;
    }
    
    .floating-content {
        padding: 20px;
    }
    
    .floating-img {
        max-height: 150px;
    }
}