/* Website Fixes CSS - Accessibility and UX improvements */

/* ===== TOUCH TARGETS ===== */
/* Ensure all interactive elements meet 44x44px minimum */

/* Footer contact links */
footer a[href^="tel:"],
footer a[href^="mailto:"] {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 8px;
}

/* Client logos */
.w-image a {
    display: inline-block;
    min-height: 44px;
    padding: 8px;
}

/* Submit button */
input[type="submit"].wpcf7-submit {
    min-height: 44px;
    padding: 12px 24px;
}

/* Navigation links on mobile */
@media (max-width: 900px) {
    .w-nav-anchor {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ===== FORM ACCESSIBILITY ===== */
/* Improve form field visibility */
.wpcf7 label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    border-color: #277cea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 124, 234, 0.2);
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #277cea;
    outline-offset: 2px;
}

/* ===== BETTER LINK VISIBILITY ===== */
footer a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer a:hover {
    text-decoration: none;
}

/* ===== SKIP LINK FOR ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #277cea;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CARD HOVER EFFECTS ===== */
.w-image:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 767px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Better footer spacing on mobile */
    footer .vc_col-sm-4 {
        text-align: center;
        margin-bottom: 20px;
    }
}

/* ===== VIDEO PLACEHOLDER ===== */
/* Style for missing videos */
.wp-video video:not([src]),
video[src=""] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 200px;
}

.wp-video::before {
    content: "Video no disponible";
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}
