/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Brand Colors:
   Primary Navy: #003399
   Bright Green: #B5E848
   Blue: #0075AB
   Light Blue: #40BFFF
   Dark Navy: #1C1C55
   Dark Teal: #004445
   White: #fff
   Light Gray: #f8f9fa
*/

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.6;
    color: #1C1C55;
    overflow-x: hidden;
    position: relative;
}





.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.90);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 51, 153, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    max-width: 180px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
    -o-transition: -o-transform 0.3s ease;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 51, 153, 0.2);
    -webkit-box-shadow: 0 2px 8px rgba(0, 51, 153, 0.2);
    -moz-box-shadow: 0 2px 8px rgba(0, 51, 153, 0.2);
}

.nav-logo-img:hover {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

.nav-logo-video {
    height: 70px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.nav-logo-video:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #1C1C55;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #003399;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 1.5rem;
}

.lang-btn {
    text-decoration: none;
    color: #1C1C55;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #003399;
    background: rgba(0, 51, 153, 0.1);
}

.lang-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #003399 0%, #0075AB 100%);
    font-weight: 600;
}

.lang-separator {
    color: #ccc;
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #1C1C55;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    width: 100%;
    position: relative;
}

.hero-banner {
    width: 100%;
    height: 100vh;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    margin-top: -80px;
    padding: 0;
    border: none;
    outline: none;
    /* iOS video optimization */
    -webkit-playsinline: true;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    /* Better mobile rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-main-text {
    font-family: 'DM Serif Display', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: lowercase;
    letter-spacing: -1px;
    color: #0099C7;
}

.hero-sub-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
    letter-spacing: 1px;
    color: #8DC63F;
}


.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #003399 0%, #0075AB 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 51, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 51, 153, 0.4);
    background: linear-gradient(135deg, #0075AB 0%, #40BFFF 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #003399;
    border: 2px solid #003399;
}

.btn-secondary:hover {
    background: #003399;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 51, 153, 0.3);
}


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

/* Animaciones para los impulsos eléctricos */
@keyframes electricPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.3) rotate(2deg);
    }
    40% {
        opacity: 0.8;
        transform: scale(1.1) rotate(-1deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.4) rotate(1deg);
    }
    80% {
        opacity: 0.9;
        transform: scale(1.2) rotate(-2deg);
    }
}

@keyframes electricFlow {
    0% {
        background-position: 0px 0px, 0px 0px;
        opacity: 0.2;
    }
    25% {
        opacity: 0.6;
    }
    50% {
        background-position: 100px 100px, -80px 80px;
        opacity: 0.4;
    }
    75% {
        opacity: 0.8;
    }
    100% {
        background-position: 200px 200px, -160px 160px;
        opacity: 0.2;
    }
}

@keyframes waveEnergy {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: scale(1.2) rotate(1deg);
        opacity: 0.7;
    }
    66% {
        transform: scale(0.9) rotate(-1deg);
        opacity: 0.5;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #003399;
    position: relative;
    overflow: hidden;
}

/* Services Carousel */
.services-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 153, 0.65);
    z-index: 2;
}

.services .container {
    position: relative;
    z-index: 3;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact .section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #004445;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
}

.section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: white;
}

.contact .section-header p {
    font-size: 1.1rem;
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 51, 153, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(181, 232, 72, 0.2);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.service-card::after {
    content: '▼';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #003399;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.service-card:hover::after,
.service-card.active::after {
    opacity: 0;
    transform: translateX(-50%) rotate(180deg);
}

.service-card:hover,
.service-card.active {
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 51, 153, 0.2);
    border-color: rgba(181, 232, 72, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

.service-card .service-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
}

.service-card:hover .service-content,
.service-card.active .service-content {
    opacity: 1;
    max-height: 400px;
    margin-top: 1rem;
    transform: translateY(0);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8rem;
    background: linear-gradient(135deg, #003399 0%, #40BFFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    border: 3px solid rgba(181, 232, 72, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon,
.service-card.active .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #1C1C55;
    transition: all 0.4s ease;
}

.service-card:hover h3,
.service-card.active h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #004445;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: #004445;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #B5E848;
    font-weight: 600;
}

/* About Section */
.about {
    padding: 100px 0;
    background-image: url('fondo-equipo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    /* Fallback for iOS */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.40);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #003399;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
}

.about-text p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: #003399;
    margin-top: 0.25rem;
}

.feature h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #003399;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.5);
}

.feature p {
    color: #000000;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(181, 232, 72, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #003399;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #004445;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.35);
    z-index: 2;
}

.contact .container {
    position: relative;
    z-index: 3;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(181, 232, 72, 0.2);
}

.contact-item i {
    font-size: 1.2rem;
    color: #003399;
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #000000;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.contact-item p {
    color: #000000;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(181, 232, 72, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid rgba(0, 51, 153, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #1C1C55;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #003399;
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
}

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

/* Footer */
.footer {
    background: rgba(28, 28, 85, 0.95);
    color: #fff;
    padding: 60px 0 20px;
    backdrop-filter: blur(15px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #40BFFF 0%, #B5E848 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #f8f9fa;
    margin-bottom: 0.5rem;
}

.footer-brand .footer-slogan {
    font-style: italic;
    color: #B5E848;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 51, 153, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(181, 232, 72, 0.3);
}

.social-links a:hover {
    background: #B5E848;
    color: #1C1C55;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-column h4 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #40BFFF;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #B5E848;
}

.footer-bottom {
    border-top: 1px solid rgba(181, 232, 72, 0.3);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 51, 153, 0.1);
        padding: 2rem 0;
        backdrop-filter: blur(15px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-stats {
        flex-direction: column;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 249, 250, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #003399 0%, #40BFFF 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0075AB 0%, #B5E848 100%);
}
/* Marketing Digital Service Card with Background Image */
.service-card.marketing-digital {
    background-image: url('img008.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-card.marketing-digital::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    z-index: 1;
}

.service-card.marketing-digital > * {
    position: relative;
    z-index: 2;
}

.service-card.marketing-digital:hover::before {
    background: rgba(255, 255, 255, 0.75);
}

/* Mejoras adicionales para el contraste de la imagen */
.service-card.marketing-digital {
    box-shadow: 0 10px 40px rgba(0, 51, 153, 0.15);
    border: 2px solid rgba(181, 232, 72, 0.4);
}

.service-card.marketing-digital:hover {
    box-shadow: 0 20px 60px rgba(0, 51, 153, 0.25);
    border-color: rgba(181, 232, 72, 0.6);
}

/* Mejorar contraste del texto sobre la imagen */
.service-card.marketing-digital h3,
.service-card.marketing-digital p,
.service-card.marketing-digital li {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.service-card.marketing-digital h3 {
    font-weight: 600;
    color: #1C1C55;
}

/* Desarrollo IT Service Card with Background Image */
.service-card.desarrollo-it {
    background-image: url('img009.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 51, 153, 0.15);
    border: 2px solid rgba(181, 232, 72, 0.4);
}

.service-card.desarrollo-it::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    z-index: 1;
}

.service-card.desarrollo-it > * {
    position: relative;
    z-index: 2;
}

.service-card.desarrollo-it:hover {
    box-shadow: 0 20px 60px rgba(0, 51, 153, 0.25);
    border-color: rgba(181, 232, 72, 0.6);
}

.service-card.desarrollo-it:hover::before {
    background: rgba(255, 255, 255, 0.75);
}

.service-card.desarrollo-it h3,
.service-card.desarrollo-it p,
.service-card.desarrollo-it li {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.service-card.desarrollo-it h3 {
    font-weight: 600;
    color: #1C1C55;
}

/* Soluciones Integrales Service Card with Background Image */
.service-card.soluciones-integrales {
    background-image: url('img010.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 51, 153, 0.15);
    border: 2px solid rgba(181, 232, 72, 0.4);
}

.service-card.soluciones-integrales::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    z-index: 1;
}

.service-card.soluciones-integrales > * {
    position: relative;
    z-index: 2;
}

.service-card.soluciones-integrales:hover {
    box-shadow: 0 20px 60px rgba(0, 51, 153, 0.25);
    border-color: rgba(181, 232, 72, 0.6);
}

.service-card.soluciones-integrales:hover::before {
    background: rgba(255, 255, 255, 0.75);
}

.service-card.soluciones-integrales h3,
.service-card.soluciones-integrales p,
.service-card.soluciones-integrales li {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.service-card.soluciones-integrales h3 {
    font-weight: 600;
    color: #1C1C55;
}


/* iOS background-attachment fix */
@supports (-webkit-overflow-scrolling: touch) {
    .about {
        background-attachment: scroll;
    }
}

/* Responsive banner styling */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    .hero-banner {
        height: 100vh;
        -o-object-fit: cover;
        object-fit: cover;
        /* iOS Safari fix */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .hero {
        padding-top: 80px;
    }

    .hero-container {
        min-height: calc(100vh - 80px);
    }

    .hero-main-text {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-sub-text {
        font-size: 1.2rem;
    }

    .hero-text-overlay {
        padding: 0 20px;
        max-width: 90%;
    }

    /* iOS background fix */
    .about {
        background-attachment: scroll;
        background-position: center center;
        -webkit-background-size: cover;
        background-size: cover;
        min-height: 80vh;
    }

    .contact {
        background-attachment: scroll;
        background-position: center center;
        -webkit-background-size: cover;
        background-size: cover;
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 100vh;
        -o-object-fit: cover;
        object-fit: cover;
        /* Android Chrome fix */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .hero-main-text {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .hero-sub-text {
        font-size: 1rem;
    }

    .hero-text-overlay {
        padding: 0 15px;
        max-width: 95%;
    }

    /* Mobile background optimization */
    .about {
        background-attachment: scroll;
        -webkit-background-size: cover;
        background-size: cover;
        background-position: center center;
        min-height: 80vh;
        background-image: url('fondo-equipo.jpg');
    }

    .contact {
        background-attachment: scroll;
        -webkit-background-size: cover;
        background-size: cover;
        background-position: center center;
        min-height: 80vh;
    }
}

/* Extra optimizations for very small screens */
@media (max-width: 320px) {
    .about {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
        min-height: 70vh;
        background-repeat: no-repeat;
    }

    .contact {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
        min-height: 70vh;
        background-repeat: no-repeat;
    }
}

/* Cookie Consent Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 28, 85, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    display: none;
    backdrop-filter: blur(10px);
    border-top: 3px solid #B5E848;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-text h4 {
    font-family: 'DM Serif Display', serif;
    margin-bottom: 10px;
    color: #B5E848;
}

.cookie-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.cookie-text a {
    color: #40BFFF;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie.btn-primary {
    background: #B5E848;
    color: #1C1C55;
}

.btn-cookie.btn-primary:hover {
    background: #8DC63F;
}

.btn-cookie.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-cookie.btn-secondary:hover {
    background: white;
    color: #1C1C55;
}

.btn-cookie.btn-outline {
    background: transparent;
    color: #40BFFF;
    border: 1px solid #40BFFF;
}

.btn-cookie.btn-outline:hover {
    background: #40BFFF;
    color: white;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
}

.cookie-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    font-family: 'DM Serif Display', serif;
    margin: 0;
    color: #1C1C55;
}

.cookie-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.cookie-close:hover {
    color: #333;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookie-category h4 {
    margin: 0 0 5px 0;
    color: #1C1C55;
    font-size: 16px;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #B5E848;
}

input:disabled + .cookie-slider {
    background-color: #B5E848;
    opacity: 0.6;
    cursor: not-allowed;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Floating Cookie Button */
.floating-cookie-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1C1C55;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-cookie-btn:hover {
    background: #003399;
    transform: scale(1.1);
}

/* Responsive Cookie Styles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-cookie {
        font-size: 12px;
        padding: 6px 12px;
    }

    .cookie-modal-content {
        width: 95%;
        margin: 10px;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 10px;
    }

    .floating-cookie-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-text {
        font-size: 13px;
    }

    .cookie-text h4 {
        font-size: 16px;
    }

    .btn-cookie {
        font-size: 11px;
        padding: 5px 10px;
    }
}
