/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #FF00FF;
    --primary-cyan: #00FFFF;
    --primary-orange: #FF6600;
    --primary-purple: #9933FF;
    --dark-purple: #6B1FB8;
    --bg-black: #000000;
    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-light-gray: #E0E0E0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevenir overflow en todos los elementos */
* {
    max-width: 100%;
}

/* Eliminar scrolls internos de secciones principales */
section {
    overflow-y: visible;
    overflow-x: visible;
}

section .container {
    overflow-y: visible;
    overflow-x: visible;
}

/* Mantener overflow hidden solo para elementos decorativos */
.service-image,
.portfolio-image,
.about-image-item,
.testimonial-image,
.map-wrapper {
    overflow: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-cyan));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-white);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: hidden;
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-pink), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-cyan), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-purple), transparent);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@media (max-width: 768px) {
    .orb-1,
    .orb-2,
    .orb-3 {
        width: 250px;
        height: 250px;
        filter: blur(60px);
        opacity: 0.2;
    }

    .orb-1 {
        top: -100px;
        left: -100px;
    }

    .orb-2 {
        bottom: -75px;
        right: -75px;
    }

    .orb-3 {
        top: 30%;
        right: 5%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    overflow: visible;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
    display: inline-block;
    word-break: break-word;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Lamp Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}


.lamp-animation {
    position: relative;
    width: 300px;
    height: 400px;
    max-width: 100%;
    margin: 0 auto;
}

.lamp-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.lamp-arm {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 200px;
    background: linear-gradient(180deg, var(--primary-pink), var(--primary-cyan));
    border-radius: 4px;
    transform-origin: bottom center;
    animation: lamp-sway 3s ease-in-out infinite;
}

@keyframes lamp-sway {
    0%, 100% {
        transform: translateX(-50%) rotate(-5deg);
    }
    50% {
        transform: translateX(-50%) rotate(5deg);
    }
}

.lamp-joint {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

.lamp-joint:first-child {
    top: 60px;
}

.lamp-joint:last-child {
    top: 120px;
}

.lamp-shade {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-top: 80px solid;
    border-top-color: transparent;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-pink));
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    filter: drop-shadow(0 0 20px rgba(255, 102, 0, 0.6));
}

.light-rays {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
}

.ray {
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-pink));
    border-radius: 2px;
    opacity: 0.8;
    animation: ray-pulse 2s ease-in-out infinite;
}

.ray-1 {
    left: -30px;
    transform: rotate(-20deg);
    animation-delay: 0s;
}

.ray-2 {
    left: 0;
    animation-delay: 0.3s;
}

.ray-3 {
    left: 30px;
    transform: rotate(20deg);
    animation-delay: 0.6s;
}

@keyframes ray-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-gray);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-gray);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    overflow: visible;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Services Section */
.services {
    background: var(--bg-darker);
    overflow: visible;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    overflow: visible;
}

.service-card {
    background: linear-gradient(135deg, rgba(153, 51, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 20px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.7);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 1.5rem 2.5rem 1rem;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-pink);
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.2);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-cyan);
    transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--primary-pink);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    padding: 0 2.5rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    padding: 0 2.5rem 2.5rem;
}

/* About Section */
.about {
    overflow: visible;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    overflow: visible;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.about-visual {
    position: relative;
    height: 500px;
}

.about-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
    position: relative;
    z-index: 2;
}

.about-image-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.about-image-item:hover {
    transform: translateY(-5px);
}

.about-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.about-image-item:hover img {
    filter: brightness(1);
}

.about-image-item:first-child {
    grid-row: 1 / 3;
}

.gradient-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan), var(--primary-purple));
    border-radius: 20px;
    opacity: 0.15;
    filter: blur(40px);
    animation: gradient-rotate 10s ease infinite;
    z-index: 1;
}

@keyframes gradient-rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-darker);
    overflow: visible;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    overflow: visible;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.6);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.portfolio-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--primary-pink);
}

/* Contact Section */
.contact {
    overflow: visible;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    width: 100%;
    overflow: visible;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-cyan);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Map Container */
.map-container {
    margin-top: 4rem;
    width: 100%;
}

.map-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.map-wrapper:hover {
    border-color: var(--primary-pink);
    box-shadow: 0 25px 70px rgba(255, 0, 255, 0.3);
}

.map-iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
    filter: grayscale(20%) brightness(0.9);
    transition: filter 0.3s ease;
}

.map-wrapper:hover .map-iframe {
    filter: grayscale(0%) brightness(1);
}

/* CV Section */
.cv-section {
    background: var(--bg-darker);
    padding: 100px 0;
    overflow: visible;
}

.cv-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cv-viewer {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 255, 0.2);
    background: var(--bg-black);
    min-height: 800px;
}

.cv-iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

.cv-download {
    text-align: center;
    padding: 2rem 0;
}

.cv-download .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-black);
    padding: 100px 0;
    overflow: visible;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    overflow: visible;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(153, 51, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-pink);
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.2);
}

.testimonial-card:hover::before {
    opacity: 0.1;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    border: 3px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-role {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 0, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-cyan);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 0, 255, 0.1);
    color: var(--text-gray);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 0 15px;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        padding: 0 15px;
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding: 0 10px;
    }

    .about-description {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        padding: 0 10px;
    }

    .contact-form {
        padding: 0 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .about-images-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .about-image-item:first-child {
        grid-row: 1;
    }

    .about-visual {
        height: auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cv-viewer {
        min-height: 500px;
    }

    .cv-iframe {
        height: 500px;
    }

    .map-title {
        font-size: 1.5rem;
    }

    .map-container {
        margin-top: 3rem;
        padding: 0 10px;
    }

    .map-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .map-iframe {
        height: 350px;
    }

    .service-card {
        padding: 0;
    }

    .service-image {
        height: 180px;
    }

    .service-icon {
        margin: 1rem 1.5rem 0.5rem;
    }

    .service-card h3 {
        padding: 0 1.5rem;
        font-size: 1.3rem;
    }

    .service-card p {
        padding: 0 1.5rem 1.5rem;
        font-size: 0.95rem;
    }

    .portfolio-item {
        min-height: 250px;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: auto;
        padding: 90px 0 40px;
    }

    .hero .container {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }


    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .nav-wrapper {
        padding: 0 10px;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        padding: 0 10px;
    }

    .hero-buttons {
        padding: 0 10px;
    }


    .section-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .about-description {
        font-size: 0.95rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .map-iframe {
        height: 300px;
    }

    .cv-viewer {
        min-height: 400px;
    }

    .cv-iframe {
        height: 400px;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .hero-subtitle,
    .section-subtitle {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-image {
        height: 150px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin: 1rem 1rem 0.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-image {
        width: 60px;
        height: 60px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .map-iframe {
        height: 250px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Prevenir overflow horizontal */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Asegurar que los elementos no se salgan */
.hero .container,
.services .container,
.about .container,
.portfolio .container,
.testimonials .container,
.contact .container {
    overflow: visible;
    width: 100%;
}
