/* Variables */
:root {
    --primary-color: #8c9eff; /* AAA sobre fondos oscuros */
    --secondary-color: #5c6bc0;
    --accent-color: #4caf50;
    --dark-color: #1a1a1a;
    --light-color: #fff;
    --gray-color: #f8f9fa;
    --dark-gray: #333;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --font-primary: 'Arial', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-cta {
    display: inline-block;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 12px 30px;
    border: 2px solid var(--dark-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-cta:hover {
    color: var(--light-color);
}

.btn-cta:hover:before {
    left: 0;
}

.btn-more {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 4px;
}

.btn-more:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-more:hover {
    color: var(--light-color);
}

.btn-more:hover:before {
    left: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--dark-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #595959; /* AAA: 7:1 sobre blanco */
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.7;
}

/* Hero Section with Video */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-section .video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.video-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Header */
.header {
    padding: 15px 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border-radius: 0 0 20px 20px;
    padding: 10px 30px;
    max-width: 1100px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: transparent;
    padding: 15px 0;
    position: fixed;
    box-shadow: none;
    animation: fadeDown 0.5s forwards;
    z-index: 2000;
}

.header.scrolled .container {
    background-color: rgba(0, 0, 0, 0.55);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes fadeDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo - sobreescribimos para asegurar consistencia */
.logo {
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
}

.logo-img {
    max-width: 110px !important;
    height: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Hero Content */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-content {
    max-width: 600px;
    color: var(--light-color);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.hero-content .subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-content .title {
    font-size: 4.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--light-color);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--light-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

.arrow {
    display: block;
    margin-top: 10px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--light-color);
    border-right: 2px solid var(--light-color);
    transform: rotate(45deg);
    margin: -5px auto;
    animation: mouseScroll 1.5s infinite;
}

.arrow span:nth-child(1) {
    animation-delay: 0s;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes mouseScroll {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--light-color);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 18px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
    background: var(--light-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
    background: var(--light-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: var(--transition);
    padding: 100px 20px 0;
}

.mobile-menu.active {
    right: 0;
    opacity: 1;
}

.mobile-menu ul {
    flex-direction: column;
    text-align: center;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu a {
    color: var(--light-color);
    font-size: 1.5rem;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(63, 81, 181, 0.03);
    top: -150px;
    right: -150px;
}

.services::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.03);
    bottom: -150px;
    left: -150px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-color);
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(63, 81, 181, 0.03), transparent);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.service-card:hover::after {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: bottom;
}

.service-card:hover:before {
    transform: scaleY(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(63, 81, 181, 0.08);
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
    color: var(--accent-color);
    background: rgba(76, 175, 80, 0.08);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: var(--dark-color);
    transition: var(--transition);
}

.service-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card:hover h3:after {
    width: 60px;
    background: var(--accent-color);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.07;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    color: var(--primary-color);
}

.service-card:hover .service-number {
    opacity: 0.12;
    transform: translateX(-5px);
}

.service-card p {
    margin-bottom: 25px;
    color: #595959; /* AAA: 7:1 sobre blanco */
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--dark-color);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    top: -150px;
    left: -150px;
}

.about:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    opacity: 0.05;
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.about-subtitle:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.about-text h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.image-container {
    position: relative;
    padding: 0;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
    display: block;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    filter: brightness(1.05) contrast(1.05);
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Eliminamos el elemento decorativo y usamos un borde en el contenedor */
.image-decoration {
    display: none;
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: var(--gray-color);
    position: relative;
}

.stats:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.03;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 30px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-item:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: right;
}

.stat-item:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-gray);
    position: relative;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background: var(--light-color);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-item {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover:before {
    opacity: 1;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: var(--light-color);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 1;
}

.project-item:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.project-info p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
}

.project-item:hover .project-info h3,
.project-item:hover .project-info p {
    transform: translateY(0);
    opacity: 1;
}

.project-cta {
    background: red;
    color: var(--light-color);
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.project-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.project-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.project-cta .btn-cta {
    background: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
    position: relative;
    z-index: 1;
}

.project-cta .btn-cta:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 120px 0 20px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.footer-wave-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave {
    position: relative;
    display: block;
    width: 100%;
    height: 80px;
    transform: translateY(-100%);
}

.footer-wave:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
}

.footer-info {
    position: relative;
}

.footer-logo img {
    height: 100px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.7;
    line-height: 1.8;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-list i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-list a, .contact-list address {
    color: var(--light-color);
    opacity: 0.7;
    transition: var(--transition);
}

.contact-list a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--light-color);
    opacity: 0.7;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a:before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icon-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.5s ease;
}

.social-icon-item i {
    position: relative;
    z-index: 1;
}

.social-icon-item:hover:before {
    transform: scale(1);
}

.newsletter h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-color);
    border-radius: 4px;
    padding-right: 45px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.newsletter-form button:hover {
    color: var(--light-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
}

.footer-legal li {
    margin-left: 20px;
}

.footer-legal a {
    color: var(--light-color);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Counters Animation */
@keyframes count {
    from {
        content: "0";
    }
    to {
        content: attr(data-target);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content .title {
        font-size: 3.5rem;
    }
    
    .about-content,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content .title {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .projects-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        height: 250px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 15px;
        justify-content: center;
    }
    
    .footer-legal li:first-child {
        margin-left: 0;
    }
    
    .video-background video {
        height: 100%;
    }
    
    .logo-img {
        height: 90px;
    }
}

@media (max-width: 576px) {
    .hero-content .title {
        font-size: 2.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .project-cta h3 {
        font-size: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Ajuste para el problema del header scrolled */
.header.scrolled + .hero-content-wrapper {
    padding-top: 80px;
}

/* Estilos específicos para heros con imagen de fondo */
.servicios-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/servicios-bg.jpg') no-repeat center center/cover;
}

.servicio-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/fotografia-bg.jpg') no-repeat center center/cover;
}

/* Estilo específico para el hero de la página de contacto */
.contacto-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/FONDO_CONTACTO.jpg') no-repeat center center/cover;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 1100;
    border-radius: 0 0 10px 10px;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0;
    overflow: hidden;
    transition: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.touch-active .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 500px;
    overflow: visible;
    transition: opacity 0.3s, max-height 0.5s ease;
    animation: fadeIn 0.3s ease;
}

/* Ajuste específico para sobrescribir comportamientos por defecto del navegador */
@media (min-width: 769px) {
    .dropdown .dropdown-menu {
        top: 100%;
        left: 0;
        transform: translateY(10px);
    }
    
    .dropdown:hover .dropdown-menu {
        transform: translateY(0);
    }
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--light-color);
    font-size: 0.9rem;
    text-transform: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(63, 81, 181, 0.2);
    color: var(--primary-color);
    padding-left: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Soporte adicional para dispositivos táctiles */
.dropdown.touch-active .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Ajustar el espacio entre los elementos del menú para acomodar el desplegable */
.main-nav li {
    margin-left: 25px;
    position: relative;
}

/* Mejorar el aspecto en móviles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background-color: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        padding-left: 20px;
        width: 100%;
        border-radius: 0;
    }
    
    .dropdown > a::after {
        float: right;
        margin-top: 8px;
    }
    
    .main-nav li {
        margin-left: 0;
        padding: 10px 0;
        width: 100%;
    }
}

/* Sección CTA */
.cta-section {
    padding: 120px 0;
    position: relative;
    color: var(--light-color);
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../images/MOSSU_UNITY-14.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    overflow: hidden;
    margin: 0;
    z-index: 1;
}

/* Sección CTA alternativa para servicios */
.cta-section-servicios {
    padding: 120px 0;
    position: relative;
    color: var(--light-color);
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../images/FONDO2_SERVICIOS.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    overflow: hidden;
    margin: 0;
    z-index: 1;
}

.cta-section-servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 26, 53, 0.3);
    z-index: -1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 26, 53, 0.3);
    z-index: -1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.cta-content h3 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.cta-section .btn-cta {
    background: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-cta:hover {
    background: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
    transform: translateY(-5px);
} 