/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Sometype+Mono:wght@400;700&display=swap');

:root {
    --color-green: #32FF87;
    --color-blue-light: #00C8D7;
    --color-blue-dark: #295AB1;
    --color-text-dark: #1F2937;
    --color-text-gray: #4B5563;
    --color-bg-light: #FFFFFF;
    --color-bg-off-white: #F9FAFB;
    --border-radius: 8px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn {
    font-family: 'Sometype Mono', monospace;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
header {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

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

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: #374151; }
.nav-links a:hover, .nav-links a.active { color: var(--color-blue-dark); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* HERO SECTION */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Más espacio al texto */
    gap: 4rem;
    align-items: center;
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #111827;
}
.hero-content h1 span { color: var(--color-blue-dark); }
.hero-content p {
    font-size: 1.15rem;
    color: var(--color-text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* BOTONES */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--color-blue-dark);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--color-blue-dark);
}
.btn:hover {
    background-color: white;
    color: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(41, 90, 177, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-blue-dark);
    margin-left: 1rem;
}
.btn-outline:hover { background: var(--color-blue-dark); color: white; }

/* SECCIONES */
.section-padding { padding: 6rem 5%; }
.bg-light { background-color: var(--color-bg-off-white); }
.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #111827;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content:''; display: block; width: 60px; height: 4px; 
    background: var(--color-green); margin: 10px auto 0;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--color-green);
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-blue-dark);
}

/* CONTACTO */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.9rem; border: 1px solid #D1D5DB;
    border-radius: 8px; font-family: 'Inter', sans-serif;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-blue-dark);
    box-shadow: 0 0 0 3px rgba(41, 90, 177, 0.1);
}
.antispam-field { display: none; }

/* FOOTER - CORREGIDO */
footer {
    background-color: #0f172a; /* Azul muy oscuro casi negro */
    color: #cbd5e1;
    padding: 4rem 5% 2rem;
    border-top: 4px solid var(--color-green);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    gap: 3rem;
}

/* Control estricto del logo del footer */
.footer-logo {
    width: 180px;  /* Ancho fijo para que no se deforme */
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-col h3 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a:hover { color: var(--color-green); text-decoration: underline; }

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { margin: 0 auto 2rem; }
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 80px; left: 0; width: 100%;
        background: white; flex-direction: column; padding: 2rem;
        display: none; box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
}