/* css/styles.css */

:root {
    --primary-color: #008749;
    --secondary-color: #4A7470;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-dark: #111111;
    --bg-black: #000000;
}

@font-face {
    font-family: 'Eurostyle - Casio';
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url('../fonts/Eurostile.ttf') format('truetype');
}

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

body {
    font-family: "Roboto", "Helvetica Neue", sans-serif;
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--text-color-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Eurostyle - Casio', sans-serif;
    font-weight: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Button Component */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 15px 30px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #006b3a;
}

.btn-alt {
    background-color: #111111;
    color: var(--text-color-light);
    border: 2px solid #333333;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-alt:hover {
    background-color: #222222;
    border-color: var(--text-color-light);
}

.btn.btn-large {
    font-size: 20px;
    padding: 25px;
}

/* Header & Nav */
header {
    background-color: #0d1117;
    background-image: linear-gradient(rgba(0, 135, 73, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 135, 73, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    padding: 15px 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 135, 73, 0.3);
}

.logo {
    justify-self: start;
}

.logo img {
    height: 60px;
    width: auto;
}

.centered-nav {
    justify-self: center;
}

.header-action {
    justify-self: end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    font-size: 15px;
    color: #e2e8f0;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 135, 73, 0.5);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #e2e8f0;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 5%;
    text-align: center;
    color: var(--text-color-light);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/tech_hero_bg.webp') center/cover no-repeat;
    opacity: 0.6;
    /* Aumentado ligeramente para que luzcan los detalles tecnológicos */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 60px);
    margin-bottom: 10px;
}

.hero h2 {
    font-size: clamp(24px, 4vw, 45px);
    margin-bottom: 20px;
    font-family: inherit;
}

.hero h2.subtitle {
    font-size: clamp(20px, 3vw, 30px);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* AI Bot Container */
.ai-bot-container {
    margin: 40px auto;
    display: flex;
    justify-content: center;
}

/* Quote Section */
.quote-section {
    padding: 80px 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.quote-icon {
    width: 60px;
    margin-bottom: 30px;
}

.quote-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.quote-text p {
    margin-bottom: 20px;
}

/* About Section */
.about {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

/* Projects Section */
.projects {
    padding: 80px 5%;
    background-color: var(--bg-black);
    color: var(--text-color-light);
    text-align: center;
}

.projects h2.section-title {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 60px;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.project-card p {
    margin-bottom: 30px;
    font-size: 16px;
}

/* Collaborations Section */
.collaborations {
    padding: 80px 5%;
    background-color: var(--secondary-color);
    text-align: center;
    color: var(--text-color-light);
}

.collaborations h2 {
    font-size: 30px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.collab-grid img {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.collab-grid img:hover {
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 80px 5%;
    text-align: center;
}

.contact-card {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 50px;
    border-radius: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color-light);
    font-size: 18px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

.social-links img {
    width: 40px;
    height: 40px;
    filter: invert(1);
}

/* Footer */
footer {
    padding: 40px 5%;
    background-color: var(--text-color-light);
    text-align: center;
    border-top: 1px solid #eee;
}

footer h2 {
    font-size: 18px;
    color: #666;
}

/* Modal Asesorías (Lightbox) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Overlay oscuro tecnológico */
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal.show-modal {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 135, 73, 0.3);
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    color: #fff;
    background-color: var(--primary-color);
    position: absolute;
    top: 0;
    right: 0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 10px;
    transition: background-color 0.3s;
    z-index: 10;
}

.close-btn:hover,
.close-btn:focus {
    background-color: #000;
    color: var(--primary-color);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* WhatsApp Green */
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-wa svg {
    width: 35px;
    height: 35px;
}

.floating-wa:hover, .floating-wa:focus {
    transform: scale(1.1) translateY(-5px);
    background-color: #1ebea5;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Hide default menu */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0d1117;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
        border-bottom: 1px solid rgba(0, 135, 73, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .about {
        flex-direction: column;
    }

    .btn.btn-large {
        padding: 15px 20px;
        font-size: 16px;
    }

    .contact-card {
        padding: 30px 15px;
    }
}