/* --- VARIABLES DE DISEÑO (Colores extraídos del logo y mockup) --- */
:root {
    color-scheme: light;
    --primary-dark: #22325a;
    --primary-blue: #2f4274;
    --accent-pink: #d81b60;
    --accent-green: #00c853;
    --bg-light-blue: #f0f7ff;
    --bg-light-green: #f3faf5;
    --bg-light-pink: #fff5f8;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --font-title: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    background-color: #ffffff;
    background-image: url('fondo.png');
    background-repeat: repeat;
}
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
section {
    padding: 80px 0;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-pink {
    background-color: var(--accent-pink);
    color: white;
}
.btn-pink:hover {
    background-color: #b0104a;
    transform: translateY(-2px);
}
.btn-outline {
    border: 2px solid var(--accent-pink);
    color: var(--accent-pink);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--accent-pink);
    color: white;
}
.btn-dark {
    background-color: var(--primary-dark);
    color: white;
}
.btn-green {
    background-color: var(--accent-green);
    color: white;
}

/* --- NAVBAR --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo img {
    height: 100px; /* Ajusta según el tamaño de tu logo original */
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
.nav-menu a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 160px;
    background: linear-gradient(135deg, #ffffff 60%, var(--bg-light-pink) 100%);
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-tag {
    color: var(--accent-pink);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 span {
    color: #42a5f5; /* Tono celeste del texto MicroLine */
}
.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.stat-item h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
}
.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- QUÉ HACEMOS --- */
.services-section {
    background-color: var(--bg-light-blue);
    text-align: center;
}
.section-header {
    max-width: 600px;
    margin: 0 auto 50px auto;
}
.section-header span {
    color: var(--accent-pink);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}
.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin: 10px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}
.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
}
.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.service-card.dark-card {
    background-color: var(--primary-dark);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card.dark-card h3 { color: white; }
.service-card.dark-card p { color: #94a3b8; }

/* --- NUESTROS TRABAJOS (GALERÍA) --- */
.portfolio-section {
    text-align: center;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    position: relative;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
/* Ajuste de tamaños asimétricos simulando el mockup */
.portfolio-item.tall {
    grid-row: span 2;
    height: 520px;
}

/* --- SOLUCIONES PARA EMPRESAS --- */
.solutions-section {
    background-color: var(--bg-light-pink);
}
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.solutions-left h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.solution-item {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}
.solution-item i {
    color: var(--accent-pink);
}

/* --- ASÍ TRABAJAMOS --- */
.process-section {
    text-align: center;
    background-color: #fffdf6; /* Fondo amarillento claro */
}
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}
.process-step {
    position: relative;
    padding: 0 10px;
}
.step-number {
    width: 40px;
    height: 40px;
    background-color: #ffcc00;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-weight: 700;
}
.process-step h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}
.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- FABRICAMOS LO QUE IMAGINÁS --- */
.fabrication-section {
    background-color: var(--bg-light-green);
}
.fabrication-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.fab-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.fab-tag-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}
.fab-tag-card i { color: var(--accent-green); }
.fab-right h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.fab-right ul {
    list-style: none;
    margin-bottom: 30px;
}
.fab-right ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.fab-right ul li i { color: var(--accent-green); }

/* --- ECOSYSTEM SECTION --- */
.ecosystem-section {
    background-color: #1a2649;
    color: white;
    text-align: center;
}
.ecosystem-section h2 { color: white; margin-bottom: 40px;}
.eco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.eco-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: left;
}
.eco-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.eco-card p { color: #cbd5e1; font-size: 0.95rem; margin-bottom: 25px; }
.eco-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.eco-tags span {
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* --- CONTACTO & FOOTER --- */
.contact-footer-section {
    background-color: #111a36;
    color: white;
    padding-bottom: 40px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-info p { color: #94a3b8; margin-bottom: 40px; }
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
}
.c-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
}
.c-btn-wa { background-color: #00e676; }
.c-btn-mail { background-color: #ff9100; }

/* Formulario */
.contact-form-container {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
}

footer {
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

/* --- RESPONSIVE DESIGN (Media Queries) --- */
@media (max-width: 992px) {
    .hero-grid, .services-grid, .portfolio-grid, .solutions-grid, .process-timeline, .fabrication-grid, .eco-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item.tall { height: 250px; }
    .nav-menu {
        display: none; /* Funcionalidad básica móvil por simplificación */
    }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-icon {
    font-size: 30px;
}
