/* Reset y Configuración Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Animated Water Background */
.water-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f7ff 0%, #b3e5fc 50%, #81d4fa 100%);
    z-index: -2;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,100 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(0,119,190,0.1)"/></svg>') repeat-x;
    background-size: 50% 100%;
    animation: wave 25s linear infinite;
}

.wave:nth-child(2) {
    bottom: 0;
    animation: wave 20s linear infinite reverse;
    opacity: 0.5;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,70 Q300,20 600,70 T1200,70 L1200,120 L0,120 Z" fill="rgba(0,168,232,0.1)"/></svg>') repeat-x;
    background-size: 50% 100%;
}

.wave:nth-child(3) {
    bottom: 0;
    animation: wave 30s linear infinite;
    opacity: 0.3;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,30 Q300,80 600,30 T1200,30 L1200,120 L0,120 Z" fill="rgba(0,201,255,0.1)"/></svg>') repeat-x;
    background-size: 50% 100%;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 3px solid #0077BE;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0077BE, #00C9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0077BE, #00C9FF);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #0077BE;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #0077BE;
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 2rem;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/imagenes/joe-ciciarelli-08AJKJf75kw-unsplash.jpg') center/cover;
    z-index: 0;
    transform: scale(1.05);
    animation: zoomIn 20s ease-in-out infinite alternate;

}

@keyframes zoomIn {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}


.hero-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.hero-logo {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    transform: translateY(0);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 2s ease 0.2s;
    animation-fill-mode: both;
    font-weight: 200;
    text-decoration: solid;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: white;
    color: #0077BE;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
   transition: all 0.3s;
   transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0077BE, #00C9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #0077BE, #00C9FF);
    border-radius: 3px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #0077BE 0%, #00C9FF 100%);
    color: white;
    text-align: center;
    padding: 4rem 5%;
    margin: 0;
    max-width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Services */
.services-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 5rem;
    box-shadow: 0 10px 50px rgba(0, 119, 190, 0.15);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #0077BE, #00C9FF);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0077BE, #00C9FF);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 119, 190, 0.3);
    border-color: #00C9FF;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 10px rgba(0, 119, 190, 0.3));
}

.service-card h3 {
    color: #0077BE;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

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

.about-text {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    color: #0077BE;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.about-text p {
    color: #666;
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-image {
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.15);
}

.portfolio-item::after {
    content: '✓ Trabajos ';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 119, 190, 0.95), transparent);
    color: white;
    padding: 1.5rem 1rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover::after {
    transform: translateY(0);
}

/* Testimonials */
.testimonials-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 5rem;
    box-shadow: 0 10px 50px rgba(0, 119, 190, 0.15);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #00C9FF, #0077BE);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    position: relative;
    border-left: 5px solid #0077BE;
}

.testimonial-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
    font-style: italic;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author {
    font-weight: 700;
    color: #0077BE;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.location-icon {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
}

.stars {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Process Section */
.process-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 5rem;
    box-shadow: 0 10px 50px rgba(0, 119, 190, 0.15);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0077BE, #00C9FF);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 119, 190, 0.4);
}

.process-step h3 {
    color: #0077BE;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.process-step p {
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0077BE 0%, #00C9FF 100%);
    color: white;
    text-align: center;
    border-radius: 30px;
    padding: 5rem 3rem;
    box-shadow: 0 15px 50px rgba(0, 119, 190, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.cta-section h2 {
    color: white;
    -webkit-text-fill-color: white;
    position: relative;
    z-index: 1;
}

.cta-section h2::after {
    background: white;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3.5rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    position: relative;
    z-index: 1;
}

.whatsapp-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-cta svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Footer */
footer {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4rem 5%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-form h3, .footer-social h3 {
    color: #00C9FF;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #333;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00C9FF;
}

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

.submit-btn {
    background: linear-gradient(135deg, #0077BE, #00C9FF);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 119, 190, 0.4);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: linear-gradient(135deg, #0077BE, #00C9FF);
    transform: translateY(-5px);
}

.social-links svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

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

/* Floating WhatsApp */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.whatsapp-message {
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    animation: fadeInRight 1s ease;
    border: 2px solid #25D366;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.whatsapp-float {
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    transition: all 0.3s;
    animation: heartbeat 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg {
    width: 40px;
    height: 40px;
    fill: white;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

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

    .about-image {
        height: 350px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    h2 {
        font-size: 2.2rem;
    }

    section, .services-section, .testimonials-section, .process-section {
        padding: 3rem 5%;
    }

    .whatsapp-message {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 580px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .hero-logo {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
}