/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #000000;
    color: #e0e0e0;
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: transparent;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: top 0.4s ease-in-out;
}

.header-hidden {
    top: -120px;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo img {
    max-height: 50px;
    width: auto;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

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

nav li {
    margin: 0 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #0000FF;
    transform: scale(1.1);
}

/* Header Social Icons */
.header-social-icons a {
    color: #ffffff;
    font-size: 1.2rem;
    margin-left: 1rem;
    background-color: #0000FF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-social-icons a:hover {
    transform: scale(1.1);
    background-color: #0000cc;
}


/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}


@keyframes animated-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    background: linear-gradient(90deg, #00F260, #0575E6, #00F260);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    background-size: 200% auto;
    animation: animated-gradient 5s ease-in-out infinite;
    line-height: 1.5; /* Final adjustment for descenders */
}

#main-title .letter {
    display: inline-block;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #0000FF;
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 255, 0.6);
}

/* Sections */
section {
    padding: 6rem 0;
}

#services {
    position: relative;
    overflow: hidden;
}

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

h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
}

#services h2 {
    background: linear-gradient(90deg, #00F260, #0575E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#contact h2 {
    background: linear-gradient(90deg, #00F260, #0575E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, scale 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(5, 117, 230, 0.4);
    scale: 1.05;
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover img:not(.animated-logo) {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.service-content p {
    font-size: 1.1rem;
    color: #b0b0b0;
}

/* Portfolio Section */
#portfolio .portfolio-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    max-width: 800px;
    margin: 0 auto;
}

#portfolio .portfolio-item img {
    width: 40%;
    object-fit: cover;
}

#portfolio .portfolio-item-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#portfolio .portfolio-item-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

#portfolio .portfolio-item-content p {
    font-size: 1.1rem;
    color: #b0b0b0;
}

/* About Section */
#about .about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

#about .about-text {
    flex: 1;
    min-width: 300px;
}

#about .about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#about .about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

#about .about-image img {
    max-width: 100%;
    border-radius: 30px;
}

#about .team-members {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    margin-top: 2rem;
}

#about .team-member {
    text-align: center;
}

#about .team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

#about .team-member p {
    font-weight: 700;
    font-size: 1rem;
}

/* Contact Section */
#contact {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://i.imgur.com/MnYDLYH.png') no-repeat center center;
    background-size: cover;
}

#contact #background-canvas {
    display: none; /* Se oculta el canvas para usar la imagen de fondo */
}

#contact form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

#contact input,
#contact textarea {
    background-color: #1f1f1f;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #0575E6;
    box-shadow: 0 0 10px rgba(5, 117, 230, 0.5);
}

#contact textarea {
    resize: vertical;
    min-height: 180px;
}

#submit-button {
    align-self: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
}

/* Footer */
footer {
    padding: 2.5rem 0;
    text-align: center;
}

.footer-blue {
    background-color: #0000FF;
}

.footer-contact {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #FFFFFF;
}

footer p {
    color: #FFFFFF;
}

/* Social Icons in Footer */
.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-social-icons a {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 1rem;
    background-color: #0000FF;
    border: 2px solid #0000FF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-social-icons a:hover {
    transform: scale(1.1);
    background-color: #0000cc;
    border-color: #0000cc;
    color: #ffffff;
}

.footer-social-icons a i {
    font-size: 1.8em;
}


.footer-logo-icon {
    max-height: 40px;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.footer-logo-icon:hover {
    transform: scale(1.1);
}

/* WhatsApp flotante */
@keyframes glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: glow 2s infinite ease-in-out;
}

.whatsapp-flotante:hover {
    transform: scale(1.15);
    background-color: #1EBE57;
    animation-play-state: paused;
}

.whatsapp-flotante i {
    font-size: 1.8rem;
    margin-right: 10px;
}

/* Logo Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animated-logo {
    animation: float 3s ease-in-out infinite;
}

/* About Me Section */
.about-me-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #0000FF 0%, #000000 70%);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 50px;
}

.about-me-card {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-me-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(5, 117, 230,.3);
}

.about-me-image-container {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 40px;
}

.about-me-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-me-card:hover .about-me-image {
    transform: scale(1.1);
}

.about-me-content {
    padding: 40px;
    color: #e0e0e0;
}

.about-me-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

@keyframes color-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.about-us-description {
    font-size: 1.4rem;
    line-height: 2.2;
    text-align: justify;
    background: linear-gradient(to right, #FFFFFF, #0000FF, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: color-shift 10s ease-in-out infinite;
    font-weight: bold;
}

#nosotros-section {
    padding: 0;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

#nosotros-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://i.imgur.com/tZoZDqa.jpeg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    animation: zoom 20s infinite alternate;
}

#empresa-section {
    background-color: #f0f8ff;
    padding: 4rem 0;
    text-align: center;
}

#empresa-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

#empresa-section p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #main-title {
        font-size: 3.5rem;
    }

    #about .about-content {
        flex-direction: column;
    }
    #about .team-members {
        justify-content: center;
    }
    #portfolio .portfolio-item {
        flex-direction: column;
    }
    #portfolio .portfolio-item img {
        width: 100%;
        height: 250px;
    }

    .about-me-card {
        flex-direction: column;
        padding-top: 40px;
    }

    .about-me-image-container {
        width: 200px;
        height: 200px;
        flex: none;
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .about-me-content {
        padding: 0 20px 40px;
        text-align: center;
    }
}
