/* ===== VARIABLES Y RESET ===== */
:root {
    --primary: #3bc9ae;
    --primary-dark: #2da58f;
    --secondary: #f5f5f5;
    --accent: #ff6b6b;
    --text: #333;
    --light: #fff;
    --dark: #222;
    --gray: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background: var(--light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
}

.nav-left,
.nav-right {
    display: flex;
    list-style: none;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-left li,
.nav-right li {
    margin: 0 15px;
}

.nav-left a,
.nav-right a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--primary);
}

.nav-left a::after,
.nav-right a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-left a:hover::after,
.nav-right a:hover::after {
    width: 100%;
}

.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1002;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    margin-top: 80px;
}

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

.video-background video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: var(--light);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease;
}

/* ===== SERVICIOS ===== */
.services-section {
    padding: 80px 0;
    background: var(--secondary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--light);
    font-size: 1.8rem;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary-dark);
    transform: rotateY(180deg);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
    padding-left: 20px;
}

.service-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--light);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-outline:hover {
    background: var(--primary);
    color: var(--light);
}

.cta-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 0;
    background: var(--light);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin: 2rem 0;
}

.about-features li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 35px;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.3rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s, box-shadow 0.5s;
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

.experience-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--light);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.experience-badge small {
    font-size: 0.9rem;
    display: block;
}

.ocultoEnLG {
    display: none;
}

/* ===== CONTACTO ===== */
.contact-section {
    padding: 80px 0;
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-form {
        background: var(--secondary);
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .form-group {
        position: relative;
        margin-bottom: 30px;
    }

    .form-group label {
        position: absolute;
        left: 15px;
        top: 15px;
        color: var(--text);
        transition: all 0.3s;
        pointer-events: none;
        background: var(--secondary);
        padding: 0 5px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 15px;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        background: transparent;
        transition: all 0.3s;
    }

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

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary);
        outline: none;
    }

    /* Efecto label flotante */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--secondary);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.map-container {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

    .nav-left,
    .nav-right {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--light);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .nav-left.active,
    .nav-right.active {
        display: flex;
    }

    .nav-left li,
    .nav-right li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .logo-container {
        top: calc(50% + 10px);
    }

    .ocultoEnLG {
        display: block;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 250px;
    }

}

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

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

    .about-section {
        padding: 60px 0;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .experience-badge {
        padding: 10px;
    }

    .experience-badge span {
        font-size: 2rem;
    }

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

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

    .logo {
        width: 80px;
        height: 80px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

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

    .service-card {
        padding: 25px;
    }
    .contact-form {
        padding: 25px;
    }
    
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}