@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #0b1220 0%, #0b1120 100%);
    color: #ccc;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Animation */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Header */
header {
    background: rgb(11, 17, 32);
    padding: 20px 0;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background: rgb(11, 17, 32);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    color: #3AAEE4;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.logo img {
  width: 205px;
  height: auto; /* mantiene proporción */
}

@media (max-width: 1200px) {
  .logo img {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 100px;
  }
}

.btn {
    background: #3AAEE4;
    color: #000;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #5bc8f7;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle:hover span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle:hover span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:hover span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1200px) {
  .btn {
    display: none;
  }
  .contact form .btn {
    display: inline-flex;
  }
  .footer-newsletter .btn {
    display: inline-flex;
  }
  .popup-content .btn {
    display: inline-flex;
  }
  .menu-toggle {
    display: flex;
  }
  nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #0b1220;
    padding: 15px 0;
    text-align: center;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  nav ul li {
    display: block;
    margin: 15px 0;
  }
  nav.active {
    display: block;
  }
}



/* Hero Section */
.hero {
    position: relative;
    color: #fff;
    height: 100vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1200px;
}

.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-video-background iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-width: 177.77vh; /* 16:9 aspect ratio */
    min-height: 100vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.title-slider {
    position: relative;
    min-height: 400px;
    width: 100%;
}

.title-slider h1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    word-wrap: break-word;
    hyphens: auto;
}

.title-slider h1.active {
    opacity: 1;
    transform: translateX(0);
}

.title-slider h1.exiting {
    opacity: 0;
    transform: translateX(-100%);
}

.hero h1 {
    font-size: 82px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-carousel {
    display: none;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero .container {
        width: 90%;
        padding: 0 20px;
    }
    .hero-video-background {
        display: none;
    }
    .hero-carousel {
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    .carousel-slide {
        display: none;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    .carousel-slide.active {
        display: block;
    }
    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .carousel-caption {
        position: absolute;
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        text-align: center;
        width: 80%;
    }
    .carousel-caption h1 {
        font-size: 28px;
    }
    .carousel-caption p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero .container {
        width: 95%;
        padding: 0 10px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .carousel-caption h1 {
        font-size: 22px;
    }
    .carousel-caption p {
        font-size: 14px;
    }
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    width: 100%;
}

/* Services Section */
.services {
    padding: 45px 0 10px 0;
    text-align: center;
}

.services h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.services > p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 70px;
}

.service-category {
    margin-bottom: 60px;
}

.service-category h3 {
    font-size: 28px;
    margin-bottom: 40px;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h4 {
    font-size: 22px;
    margin: 20px;
}

.service-item p {
    font-size: 16px;
    color: #ccc;
    margin: 0 20px 20px;
}

/* CTA Section */
.cta {
    padding: 60px 0;
    text-align: center;
}

.cta.cta-boxed {
    background: transparent;
    margin: 10px auto;
    max-width: 1200px;
    padding: 20px 40px;
    color: #fff;
}

.cta.cta-boxed h2 {
    color: #fff;
}

.cta.cta-boxed p {
    color: #fff;
}

.cta.cta-boxed .btn {
    background: #3AAEE4;
    color: #000;
    display: inline-block;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Portfolio Section */
.portfolio {
    padding: 50px 0;
    text-align: center;
}

.portfolio h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.portfolio > p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 70px;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
}

.portfolio-item img {
    width: 100%;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.portfolio-item p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 10px;
}

.tags span {
    background: #333;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #fff;
}

/* Aliado Section */
.aliado {
    padding: 10px 0 50px 0;
    background: transparent;
    text-align: center;
}

.aliado h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.aliado > p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 70px;
}

.aliado-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.aliado-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.aliado-item:hover {
    transform: translateY(-10px);
}

.aliado-item i {
    font-size: 48px;
    color: #3AAEE4;
    margin-bottom: 20px;
}

.aliado-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Clientes Destacados Section */
.clientes-destacados {
    padding: 80px 0;
    background: transparent;
    text-align: center;
}

.clientes-destacados h3 {
    font-size: 24px;
    margin-bottom: 40px;
}

.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-slider-track {
    display: flex;
    width: calc(100px * 10); /* 300px per logo * 10 logos */
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 5)); /* Scroll 5 logos */
    }
}

.logo-slider-track img {
    width: 300px;
    margin: 0 40px;
}

/* Numeros Section */
.numeros {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    border-radius: 10px;
    margin: 50px auto;
    max-width: 1200px;
}

.numeros h2 {
    font-size: 42px;
    margin-bottom: 50px;
}

.numero-items {
    display: flex;
    justify-content: space-around;
}

.numero-item h3 {
    font-size: 48px;
    margin: 0;
}

.numero-item p {
    font-size: 18px;
}

/* Testimonials Section */
.testimonials {
    padding: 10px 0 50px 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 42px;
    margin-bottom: 70px;
}

.testimonial-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
}

.stars {
    color: #f8d64e;
    margin-bottom: 15px;
}

.testimonial-item p {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-item h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.testimonial-item span {
    color: #ccc;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: transparent;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding:10px 20px;
    border-radius: 10px;
}

.contact-form h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.contact-form p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

.contact form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact form input,
.contact form textarea {
    padding: 15px;
    border: 1px solid #444;
    background-color: #222;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.contact form textarea {
    grid-column: 1 / -1;
    height: 150px;
    resize: vertical;
}

.contact form .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
}

.contact-info-item i {
    font-size: 24px;
    color: #3AAEE4;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-info-item h4 {
    margin: 0 0 5px 0;
}

.contact-info-item p {
    margin: 0;
    color: #ccc;
}

.contact-info-item span {
    font-size: 14px;
    color: #999;
}

.contact-info-item p a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item p a:hover {
    color: #3AAEE4;
}

/* Respuesta Rapida Section */
.respuesta-rapida-section {
    background-color: transparent;
    padding: 60px 0;
}

.respuesta-rapida-box {
    background: #3AAEE4;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
}

.respuesta-rapida-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.respuesta-rapida-item i {
    font-size: 24px;
}

.respuesta-rapida-item h3 {
    font-size: 28px;
    margin: 0;
}

.respuesta-rapida-box > p {
    font-size: 18px;
    margin: 20px 0;
}


/* Footer */
footer {
    background: transparent;
    color: #fff;
    padding: 60px 0 0;
    border-top: 1px solid #444;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

@media (min-width: 1024px) {
    footer .container {
        grid-template-columns: 2fr 1fr 2fr 2fr;
    }
}

footer h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #3AAEE4;
}

footer p, footer a {
    color: #ccc;
    text-decoration: none;
}

.footer-contact p a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact p a:hover {
    color: #3AAEE4;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 20px;
}

.footer-newsletter form {
    display: flex;
    margin-top: 20px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #222;
    color: #fff;
}

.footer-newsletter .btn {
    border-radius: 0 5px 5px 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    margin-top: 40px;
}

/* Newsletter Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.popup-content {
    background: #0b1220;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
}

.popup-content p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
}

/* Blog Page */
.blog-page {
    padding: 60px 0;
}

.blog-page h1 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 60px;
}

.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post-content {
    padding: 30px;
}

.blog-post-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.blog-post-content p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
}

.sidebar .sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.sidebar .sidebar-widget h3 {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.sidebar .sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar .sidebar-widget ul li {
    margin-bottom: 15px;
}

.sidebar .sidebar-widget ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar .sidebar-widget ul li a:hover {
    color: #3AAEE4;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-post-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact form {
        grid-template-columns: 1fr;
    }

    .numero-items {
        flex-direction: column;
    }

    .numero-item {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .blog-page h1 {
        font-size: 32px;
    }

    .blog-post-content h2 {
        font-size: 22px;
    }

    .sidebar .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 768px) {
  #inicio.hero {
    display: none;
  }
}