/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

/* Variables de color */
:root {
    --celeste: #5ce1e6;
    --celeste-pastel: #b2f2f7;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --gris: #6c757d;
    --oscuro: #212529;
    --sombra: rgba(92, 225, 230, 0.1);
}

/* Cabecera */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--blanco);
    box-shadow: 0 2px 20px var(--sombra);
    z-index: 1000;
    padding: 1.2rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(92, 225, 230, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Impact', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.1rem;
}

.nav-button {
    display: inline-block;
    background: transparent;
    color: var(--oscuro);
    padding: 0.6rem 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 90px;
    text-align: center;
    line-height: 1.2;
}

.nav-button:hover, .nav-button.active {
    background: var(--celeste-pastel);
    border-color: var(--celeste);
    color: var(--oscuro);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(92, 225, 230, 0.2);
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--celeste);
    transition: width 0.4s ease, left 0.4s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-button:hover::after, .nav-button.active::after {
    width: 60%;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--oscuro);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--blanco);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--oscuro);
    cursor: pointer;
}

/* Secciones */
section {
    padding: 120px 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-content {
    flex: 1;
    animation: fadeInRight 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-content {
    flex: 1;
    text-align: center;
    animation: fadeInLeft 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 8px solid var(--blanco);
}

.image-content img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

h1, h2, h3 {
    margin-bottom: 1.2rem;
    color: var(--oscuro);
    line-height: 1.2;
}

h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--oscuro), #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

h2 {
    font-size: 2.8rem;
    color: var(--celeste);
    font-weight: 700;
    position: relative;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--celeste);
    border-radius: 2px;
}

h3 {
    font-size: 1.9rem;
    margin-bottom: 1.8rem;
    color: var(--gris);
    font-weight: 500;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gris);
    font-size: 1.1rem;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--celeste), #48c7d6);
    color: var(--oscuro);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(92, 225, 230, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 1.5rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 180px;
    text-align: center;
    line-height: 1.3;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #48c7d6, var(--celeste));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(92, 225, 230, 0.5);
    color: var(--blanco);
}

/* Iconos decorativos */
.icon {
    position: absolute;
    opacity: 0.25;
    z-index: 1;
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.15));
    transform: rotate(var(--rotate, 0deg));
    animation: floatIcon 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    background: rgba(92, 225, 230, 0.1);
    padding: 12px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.icon i {
    font-size: 65px;
    display: block;
    color: var(--color, var(--celeste));
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

/* Iconos específicos por sección */
#inicio .icon {
    opacity: 0.15;
}

#automatizaciones .icon {
    opacity: 0.28;
}

#desarrollo .icon {
    opacity: 0.28;
}

#quienes-somos .icon {
    opacity: 0.28;
}

/* Nubes CSS */
.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.15));
    z-index: 1;
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

/* Nubes grandes */
.cloud-1 {
    top: 15%;
    right: 12%;
    width: 140px;
    height: 70px;
    animation: float 9s ease-in-out infinite;
}

.cloud-1::before {
    width: 90px;
    height: 90px;
    top: -35px;
    left: 25px;
}

.cloud-1::after {
    width: 70px;
    height: 70px;
    top: -18px;
    right: 25px;
}

.cloud-2 {
    top: 25%;
    left: 8%;
    width: 100px;
    height: 50px;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.cloud-2::before {
    width: 60px;
    height: 60px;
    top: -25px;
    left: 20px;
}

.cloud-2::after {
    width: 50px;
    height: 50px;
    top: -12px;
    right: 20px;
}

.cloud-3 {
    bottom: 25%;
    right: 18%;
    width: 120px;
    height: 60px;
    animation: float 10s ease-in-out infinite;
    animation-delay: 2s;
}

.cloud-3::before {
    width: 80px;
    height: 80px;
    top: -30px;
    left: 20px;
}

.cloud-3::after {
    width: 60px;
    height: 60px;
    top: -15px;
    right: 20px;
}

.cloud-4 {
    top: 65%;
    left: 15%;
    width: 80px;
    height: 40px;
    animation: float 7s ease-in-out infinite;
    animation-delay: 3s;
}

.cloud-4::before {
    width: 50px;
    height: 50px;
    top: -20px;
    left: 15px;
}

.cloud-4::after {
    width: 40px;
    height: 40px;
    top: -10px;
    right: 15px;
}

.cloud-5 {
    top: 45%;
    right: 25%;
    width: 110px;
    height: 55px;
    animation: float 11s ease-in-out infinite;
    animation-delay: 0.5s;
}

.cloud-5::before {
    width: 70px;
    height: 70px;
    top: -25px;
    left: 20px;
}

.cloud-5::after {
    width: 55px;
    height: 55px;
    top: -12px;
    right: 20px;
}

.cloud-6 {
    bottom: 35%;
    left: 20%;
    width: 70px;
    height: 35px;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1.5s;
}

.cloud-6::before {
    width: 45px;
    height: 45px;
    top: -15px;
    left: 12px;
}

.cloud-6::after {
    width: 35px;
    height: 35px;
    top: -8px;
    right: 12px;
}

/* Nubes medianas */
.cloud-7 {
    top: 35%;
    right: 8%;
    width: 90px;
    height: 45px;
    animation: float 9s ease-in-out infinite;
    animation-delay: 1s;
}

.cloud-7::before {
    width: 60px;
    height: 60px;
    top: -20px;
    left: 15px;
}

.cloud-7::after {
    width: 45px;
    height: 45px;
    top: -10px;
    right: 15px;
}

.cloud-8 {
    bottom: 20%;
    left: 12%;
    width: 100px;
    height: 50px;
    animation: float 10s ease-in-out infinite;
    animation-delay: 2.5s;
}

.cloud-8::before {
    width: 70px;
    height: 70px;
    top: -25px;
    left: 20px;
}

.cloud-8::after {
    width: 50px;
    height: 50px;
    top: -12px;
    right: 20px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0px); }
}

/* Flechas ascendentes */
.arrow {
    position: absolute;
    z-index: 1;
    opacity: 0.7;
    animation: arrowBounce 3s infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.arrow::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 45px;
    background-color: var(--celeste);
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 18px solid var(--celeste);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Posiciones de flechas */
.arrow-1 {
    top: 10%;
    right: 18%;
    animation-delay: 0s;
}

.arrow-2 {
    top: 20%;
    right: 10%;
    animation-delay: 0.6s;
}

.arrow-3 {
    top: 30%;
    right: 22%;
    animation-delay: 1.2s;
}

.arrow-4 {
    top: 18%;
    left: 15%;
    animation-delay: 0.3s;
}

.arrow-5 {
    top: 35%;
    left: 8%;
    animation-delay: 0.9s;
}

.arrow-6 {
    top: 25%;
    left: 22%;
    animation-delay: 1.5s;
}

.arrow-7 {
    bottom: 20%;
    right: 15%;
    animation-delay: 0.2s;
}

.arrow-8 {
    bottom: 35%;
    right: 25%;
    animation-delay: 0.8s;
}

.arrow-9 {
    bottom: 28%;
    right: 8%;
    animation-delay: 1.4s;
}

.arrow-10 {
    top: 60%;
    left: 20%;
    animation-delay: 0.5s;
}

.arrow-11 {
    top: 75%;
    left: 12%;
    animation-delay: 1.1s;
}

.arrow-12 {
    top: 68%;
    left: 28%;
    animation-delay: 1.7s;
}

.arrow-13 {
    top: 40%;
    right: 30%;
    animation-delay: 0.4s;
}

.arrow-14 {
    top: 55%;
    right: 20%;
    animation-delay: 1.0s;
}

.arrow-15 {
    top: 48%;
    right: 35%;
    animation-delay: 1.6s;
}

.arrow-16 {
    bottom: 30%;
    left: 25%;
    animation-delay: 0.7s;
}

.arrow-17 {
    bottom: 45%;
    left: 18%;
    animation-delay: 1.3s;
}

.arrow-18 {
    bottom: 38%;
    left: 32%;
    animation-delay: 1.9s;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sección 1 - Inicio */
#inicio {
    background: linear-gradient(135deg, var(--gris-claro), var(--blanco));
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--celeste) 0%, transparent 70%);
    opacity: 0.1;
    top: -25%;
    left: -25%;
    z-index: -1;
    border-radius: 50%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 10px solid var(--blanco);
    position: relative;
    z-index: 2;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

.problem-solution {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--celeste);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.problem-solution h4 {
    color: var(--oscuro);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.problem-solution p {
    margin: 0;
    color: var(--gris);
    font-size: 1rem;
}

/* Secciones de servicios con patrón alternado */
#automatizaciones {
    background: linear-gradient(135deg, var(--blanco), var(--gris-claro));
}

#automatizaciones .section-content {
    flex-direction: row;
}

#quienes-somos {
    background: linear-gradient(135deg, var(--gris-claro), var(--celeste-pastel));
    text-align: center;
}

#quienes-somos .text-content {
    margin: 0 auto;
    max-width: 800px;
}

#quienes-somos h2 {
    text-align: center;
}

#quienes-somos h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#desarrollo {
    background: linear-gradient(135deg, var(--blanco), var(--gris-claro));
}

#desarrollo .section-content {
    flex-direction: row-reverse;
}

/* Sección 6 - Contacto */
#contacto {
    background: linear-gradient(135deg, #e6f9fa, #ffffff);
    position: relative;
    overflow: hidden;
    padding-bottom: 150px;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--blanco);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(92, 225, 230, 0.2);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--oscuro);
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--celeste);
    box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.2);
}

.form-group input.error {
    border-color: #e74c3c;
}

.form-group input.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--oscuro), #1a1c1d);
    color: var(--blanco);
    text-align: center;
    padding: 4rem 2rem 2rem;
    margin-top: -5rem;
    position: relative;
    z-index: 5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Impact', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blanco);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    cursor: pointer;
}

.footer-logo span:last-child {
    color: #ffffff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.social-button:hover {
    background: var(--celeste);
    color: var(--oscuro);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(92, 225, 230, 0.3);
}

.footer-info {
    margin: 2rem 0;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1200px) {
    h1 {
        font-size: 3.2rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    .section-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content, .section-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .text-content, .image-content, .hero-image {
        flex: none;
        width: 100%;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .problem-solution {
        text-align: left;
    }
}

@media (max-width: 768px) {
    section {
        padding: 100px 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-content, .section-content {
        gap: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1.5rem;
        font-size: 1.1rem;
        padding: 0.9rem 2rem;
    }

    .nav-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }

    /* Menú móvil */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .btn {
        font-size: 1.05rem;
        padding: 0.8rem 1.8rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .hero-image::before {
        display: none;
    }
    .arrow {
        display: none;
    }
    .icon {
        opacity: 0.2;
    }
    .icon i {
        font-size: 45px;
    }
    .nav-button {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.6rem;
    }
    .nav-button {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.7rem;
    }
    p {
        font-size: 1rem;
    }
}

/* Glass Panel Effect */
.glass-panel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-overlay:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.glass-content {
    text-align: center;
    color: var(--oscuro);
}

.glass-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--celeste);
}

.glass-content p {
    font-size: 1.1rem;
    color: var(--gris);
}

.glass-panel img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    z-index: 0;
}