/* ========================================
   MARO//A - COMPONENTES
   ======================================== */

/* ==================== NAVBAR ==================== */
.navbar {
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-link {
    position: relative;
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

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

.btn-primary:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

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

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
}

.hero-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* ==================== VIDEO PLAYER ==================== */
.play-button {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.play-button:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.play-button:active {
    transform: scale(1.05);
}

/* ==================== SERVICE CARDS ==================== */
.service-card {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.service-card img {
    transition: transform var(--transition-slow);
}

.service-card:hover img {
    transform: scale(1.1);
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: scale(1.05) rotate(-1deg);
}

/* ==================== CLIENT LOGOS ==================== */
.client-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ==================== MODALS ==================== */
.modal {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-close {
    transition: all var(--transition-fast);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
}

/* ==================== FORMS ==================== */
.form-input {
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

/* ==================== LOADER ==================== */
.loader {
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* ==================== TOOLTIPS ==================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background-color: var(--gray-dark);
    color: var(--white);
    font-size: 0.875rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

[data-tooltip]:hover::after {
    opacity: 1;
}