:root {
    --primary-color: #00a8ff;
    --secondary-color: #0097e6;
    --dark-color: #2f3640;
    --light-color: #f5f6fa;
    --accent-color: #e84118;
    --text-color: #333;
    --text-light: #7f8fa6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.no-scroll {
    overflow: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-container .logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(15deg);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.burger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active .line2 {
    opacity: 0;
}

.burger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(102, 96, 96, 0.7), rgba(0, 0, 0, 0.7)), url('imagenes/fondo.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 600px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
}

section {
    padding: 5rem 5%;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: var(--primary-color);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-image {
    flex: 1;
    width: 100%;
    max-width: 550px;
    height: 100%;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-swiper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.custom-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-swiper .swiper-button-prev,
.custom-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.custom-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: white;
    opacity: 0.7;
}

.custom-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 168, 255, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1.2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.contact-form {
    max-width: 550px;
    margin: 0 auto;
    background: white;
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea {
    height: 140px;
    resize: vertical;
}

footer {
    background: var(--dark-color);
    color: white;
    padding: 3.5rem 5% 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 3px;
    background: var(--primary-color);
    bottom: -6px;
    left: 0;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section i {
    margin-right: 0.4rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estilos responsive para el menú - Versión compacta */
@media screen and (max-width: 768px) {
    header {
        padding: 0.8rem 5%;
    }

    .logo-container .logo {
        width: 60px;
        height: 60px;
    }

    .hero {
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }

    section {
        padding: 4rem 5%;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .about {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        min-height: 280px;
    }

    .custom-swiper {
        height: 280px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 120px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0.8rem 0;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.3s ease-out;
        pointer-events: none;
        backdrop-filter: blur(10px);
        overflow-y: auto;
    }

    .nav-links.open {
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }

    .nav-links li {
        opacity: 0;
        margin: 0.8rem 0;
        transform: translateX(15px);
        transition: all 0.2s ease;
    }

    .nav-links.open li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links li:nth-child(5) { transition-delay: 0.25s; }

    .burger {
        display: block;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .project-card img {
        height: 180px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 3rem 5%;
    }

    h2 {
        font-size: 1.6rem;
    }

    .nav-links li {
        margin: 0.6rem 0;
    }
}
