@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128c7e;
}

:root {
    /* Professional Industrial Palette */
    --primary-color: #1e3a5f;
    /* Azul industrial */
    --secondary-color: #ff6b35;
    /* Naranja seguridad */
    --accent-color: #ff6b35;
    /* Using secondary as accent too */
    --dark-bg: #0a1924;
    --light-bg: #f8f9fa;
    /* Gris claro background */
    --text-color: #212529;
    /* Cuerpo texto */
    --heading-color: #1e3a5f;
    /* Títulos */
    --light-text: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-industrial: 0 15px 40px rgba(30, 58, 95, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: 1px solid var(--border-color);
}

header.sticky {
    padding: 0.7rem 0;
    background-color: rgba(13, 44, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1200/600') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-align: center;
    padding-top: 4rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Standardized Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 184, 212, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    background-color: #e65a2b;
}

.btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--heading-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

.about-text p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 400;
}

#nosotros {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

#nosotros.reveal-active .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about-img {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

#nosotros.reveal-active .about-img {
    opacity: 1;
    transform: translateX(0);
}

.about-img img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(13, 44, 64, 0.2));
    animation: floatAbout 6s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
    transform-style: preserve-3d;
    border-radius: 12px;
}

/* Mision Vision Section */
.mision-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.mv-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.mv-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mv-card p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.9;
}

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

.fortaleza-card {
    background-color: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(13, 44, 64, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(13, 44, 64, 0.05);
    opacity: 0;
    transform: translateY(30px);
}

.fortalezas.reveal-active .fortaleza-card {
    opacity: 1;
    transform: translateY(0);
}

.fortalezas .fortaleza-card:nth-child(1) {
    transition-delay: 0.1s;
}

.fortalezas .fortaleza-card:nth-child(2) {
    transition-delay: 0.2s;
}

.fortalezas .fortaleza-card:nth-child(3) {
    transition-delay: 0.3s;
}

.fortalezas .fortaleza-card:nth-child(4) {
    transition-delay: 0.4s;
}

.fortaleza-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(13, 44, 64, 0.12);
    border-color: var(--accent-color);
}

.fortaleza-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.fortaleza-card:hover::before {
    transform: scaleX(1);
}

.fortaleza-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(0, 184, 212, 0.4));
}

.fortaleza-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.fortaleza-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}



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

.service-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-industrial);
    border-color: var(--secondary-color);
}

.service-img-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-sm {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-sm:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}



/* Reveal Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    border-left: 4px solid var(--secondary-color);
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Contact Section & Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info-grid {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

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

footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 4rem 0;
    text-align: center;
    border-top: 2px solid var(--accent-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent-color);
}

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

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--accent-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 5rem;
}

/* Strategic animated grid */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 153, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 153, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    animation: gridScan 20s linear infinite;
}

@keyframes gridScan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(26, 82, 118, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 2;
    position: relative;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 650px;
    margin: 0;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin: 0 0 3rem 0;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    line-height: 1.4;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

#engine-pop-out {
    max-width: 130%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
    transform-style: preserve-3d;
    z-index: 10;
    animation: floatEngine 6s ease-in-out infinite;
    pointer-events: auto;
}

@keyframes floatEngine {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: 10rem 0 5rem;
        overflow: hidden;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 4rem;
        transform: translateY(30px);
    }

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

    .hero p {
        margin: 0 auto 2.5rem;
        border-left: none;
        padding-left: 0;
    }

    .hero-btns {
        justify-content: center;
    }

    #engine-pop-out {
        max-width: 100%;
        animation: floatEngineMobile 4s ease-in-out infinite;
    }

    @keyframes floatEngineMobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-15px);
        }
    }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 11, 16, 0.98);
        backdrop-filter: blur(20px);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 999;
        border-left: 1px solid var(--glass-border);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-img {
        order: -1;
        margin-bottom: 2rem;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Estilos para el botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse (Hover) */
.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

/* Tamaño del icono interno */
.whatsapp-btn i {
    margin-top: 2px;
    /* Ajuste fino de posición */
}