/* RegistroLab - Custom Styles */
/* Colores verdosos-azulados personalizados */

:root {
    /* Colores principales verdosos-azulados */
    --primary-color: #4EB58C;
    --primary-dark: #3A8B6F;
    --primary-light: #6BC4A3;
    --secondary-color: #2E8B8B;
    --accent-color: #20B2AA;
    --success-color: #4EB58C;
    --info-color: #4682B4;
    --warning-color: #DAA520;
    --danger-color: #DC143C;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #4EB58C 0%, #2E8B8B 100%);
    --gradient-hero: linear-gradient(135deg, #2E8B8B 0%, #4EB58C 50%, #20B2AA 100%);
    
    /* Texto */
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --text-muted: #7F8C8D;
}

/* Override Bulma primary color */
.has-background-primary {
    background-color: var(--primary-color) !important;
}

.is-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.is-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* Hero Section */
.hero-bg {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-item {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: var(--primary-color) !important;
}

.navbar-item img {
    max-height: 3.75rem;
}

/* Feature Cards */
.feature-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Pricing Section */
.pricing-section {
    background: var(--gradient-primary);
    position: relative;
}

.pricing-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: white;
    transform: scale(1.05);
}

.price {
    margin: 2rem 0;
}

.currency {
    font-size: 2rem;
    vertical-align: top;
    color: var(--primary-color);
}

.amount {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.period {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.features-list i {
    color: var(--success-color);
    margin-right: 0.5rem;
    width: 20px;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.footer a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-links .icon:hover {
    color: var(--primary-color);
}

/* Contact Form */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.input, .textarea {
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    transition: border-color 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(78, 181, 140, 0.25);
}

/* Modal */
.modal-card {
    border-radius: 15px;
    overflow: hidden;
}

.modal-card-head {
    background: var(--gradient-primary);
    color: white;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero-bg .title {
        font-size: 2.5rem !important;
    }
    
    .hero-bg .subtitle {
        font-size: 1.5rem !important;
    }
    
    .pricing-card {
        transform: none;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    /* Añadir padding superior para evitar solapamiento con navbar fijo */
    .mobile-hero-fix {
        padding-top: 8rem !important;
        min-height: calc(100vh + 4rem) !important;
    }
    
    .mobile-hero-fix .hero-body {
        padding-top: 3rem !important;
    }
    
    .mobile-hero-fix .columns {
        min-height: calc(100vh + 4rem) !important;
    }
    
    /* Asegurar que el contenido no se solape */
    .mobile-hero-fix .title,
    .mobile-hero-fix .subtitle {
        margin-top: 2rem !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom utilities */
.has-text-primary {
    color: var(--primary-color) !important;
}

.has-background-primary {
    background-color: var(--primary-color) !important;
}

.has-background-gradient {
    background: var(--gradient-primary) !important;
}

/* Button hover effects */
.button.is-primary {
    position: relative;
    overflow: hidden;
}

.button.is-primary::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;
}

.button.is-primary:hover::before {
    left: 100%;
}

/* Section spacing */
.section {
    padding: 4rem 1.5rem;
}

/* Card hover effects */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Text selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Contact Form Styles */
#contact-form {
    position: relative;
}

#contact-form .field {
    margin-bottom: 1.5rem;
}

#contact-form .input,
#contact-form .textarea {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

#contact-form .input:focus,
#contact-form .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(78, 181, 140, 0.25);
}

#contact-form .input:hover,
#contact-form .textarea:hover {
    border-color: var(--primary-light);
}

#contact-form .button {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#contact-form .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 181, 140, 0.4);
}

#contact-form .button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#contact-form .button .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Form Message Styles */
#form-message {
    margin-top: 1rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#form-message.is-success {
    background-color: #f0f9ff;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

#form-message.is-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

#form-message ul {
    margin: 0.5rem 0 0 1rem;
    padding-left: 0;
}

#form-message li {
    margin-bottom: 0.25rem;
}

/* Checkbox Styles */
#contact-form .checkbox {
    font-size: 0.9rem;
    line-height: 1.4;
}

#contact-form .checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

#contact-form .checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

#contact-form .checkbox a:hover {
    color: var(--primary-dark);
}

/* Form Validation Styles */
#contact-form .input.is-danger,
#contact-form .textarea.is-danger {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.125em rgba(220, 20, 60, 0.25);
}

#contact-form .help.is-danger {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
#contact-form .button.is-loading {
    pointer-events: none;
}

/* Responsive Form */
@media screen and (max-width: 768px) {
    #contact-form .button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    #form-message {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .cookie-notice {
        display: none !important;
    }
}
