/* Fluxus Brand Identity (Official) */
:root {
    /* Backgrounds */
    --bg-dark: #000000;
    /* Pure Black as per brand manual */
    --bg-card: rgba(20, 20, 20, 0.8);
    /* Dark grey glass */
    --bg-card-hover: rgba(30, 30, 30, 0.9);

    /* Brand Colors */
    --primary-moss: #7AA87A;
    /* Verde musgo suave - Top Icon */
    --primary-teal: #3B8C94;
    /* Azul petróleo/teal suave - Bottom Icon */

    /* Text Colors */
    --text-fluxus: #e0e0e0;
    /* Adapted from #374442 for dark mode contrast */
    --text-tagline: #b0b0b0;
    /* Adapted from #4B5652 for dark mode contrast */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    /* Elegant Serif */
    --font-body: 'Poppins', sans-serif;
    /* Modern Sans-serif */

    /* Borders & Shadows */
    --border-color: rgba(122, 168, 122, 0.15);
    /* Moss hint */
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --glow-shadow: 0 0 20px rgba(122, 168, 122, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-main), var(--text-tagline));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    /* More standard/elegant */
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-moss), var(--primary-teal));
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 140, 148, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 140, 148, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-moss);
    color: var(--primary-moss);
}

.btn-outline:hover {
    background: rgba(122, 168, 122, 0.1);
    color: #fff;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--primary-moss);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    /* Black transparent */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--primary-moss);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    margin: 6px auto;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.brand-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0px;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.brand-slogan {
    display: block;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-moss);
    /* Moss Green for slogan tagline */
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: none;
    /* Keep natural case or sentence case */
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-graphic {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: pulse 5s infinite ease-in-out;
}

/* Background Glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    top: -150px;
    right: -150px;
    background: var(--primary-moss);
}

.glow-2 {
    bottom: -150px;
    left: -150px;
    background: var(--primary-teal);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.icon-box {
    margin-bottom: 1.5rem;
    color: var(--primary-moss);
    background: rgba(59, 140, 148, 0.1);
    /* Teal background tint */
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Rounded for organic feel */
    border: 1px solid rgba(122, 168, 122, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Proyectos Carousel */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
    /* Space for buttons */
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    /* Opcional: bordes redondeados para el contenedor */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* Ajustes de Tarjeta dentro del Carrusel */
.project-card {
    display: flex;
    flex-direction: column;
    /* Apilar imagen y texto */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    height: 100%;
    border-top: 3px solid var(--primary-teal);
    border-left: none;
    min-height: 450px;
    /* Altura mínima consistente */
}

.project-logo {
    height: 150px;
    /* Altura fija para el contenedor del logo */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.project-logo img {
    max-height: 100%;
    /* La imagen nunca excederá los 150px de alto */
    max-width: 80%;
    /* Mantiene margen horizontal */
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Controles del Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-teal);
    color: var(--primary-teal);
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-teal);
    color: #000;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

.carousel-indicator {
    border: none;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicator.current-slide {
    background: var(--primary-teal);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0;
    }

    .carousel-btn {
        display: none;
        /* Ocultar botones en móvil, usar swipe o dots */
    }

    /* En móvil se muestran los dots */
    .project-card {
        padding: 2rem 1rem;
    }
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Más espacio para el formulario */
    gap: 40px;
    /* Reducido de 60px */
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-moss), var(--primary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.info-item {
    margin-top: 1.5rem;
    padding-left: 15px;
    border-left: 2px solid var(--primary-teal);
    color: var(--text-muted);
}

.info-item strong {
    color: var(--primary-moss);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contact-link {
    color: var(--text-main);
    font-weight: 500;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-teal);
}

/* Form Styles Modernizados */
.contact-form {
    padding: 10px;
}

.form-group {
    margin-bottom: 2rem;
    /* Separación entre inputs */
    position: relative;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 0;
    /* Padding solo vertical */
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    /* Línea sutil por defecto */
    border-radius: 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Placeholder style adjustment mainly for inputs */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-bottom-color: var(--primary-teal);
    box-shadow: 0 10px 10px -10px rgba(59, 140, 148, 0.3);
    /* Leve brillo inferior */
    background: linear-gradient(to bottom, transparent 95%, rgba(59, 140, 148, 0.1) 100%);
}

.contact-form select {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.contact-form select option {
    background: #1a1a1a;
    color: var(--text-main);
    padding: 10px;
}

.contact-form select option {
    background: #000;
    /* Fix dropdown bg in dark mode */
    color: var(--text-main);
}

/* Hero Logo Visual */
.hero-main-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(122, 168, 122, 0.2));
    /* Subtle moss glow */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Footer */
#footer {
    background: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-brand h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.footer-brand p {
    color: var(--primary-moss);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.footer-contact-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-contact-summary span {
    margin: 0 10px;
}

.footer-bottom {
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delayed {
    transition-delay: 0.15s;
}

.delayed-1 {
    transition-delay: 0.15s;
}

.delayed-2 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-bottom: 40px;
        width: 100%;
    }

    .brand-name {
        font-size: 3.5rem;
    }

    .brand-slogan {
        font-size: 1.2rem;
    }

    .project-card,
    .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 40px;
        padding: 2rem;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 71px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        border-top: 1px solid var(--border-color);
        padding-top: 40px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
    }

    .menu-toggle {
        display: block;
    }
}