/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ===== HEADER / NAV ===== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    align-items: center;

}

.logo span {
    color: #3b82f6;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #475569;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #0f172a;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #0f172a;
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.hero-content .highlight {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: rgb(235, 216, 45);

}

.hero-content p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 500px;
}

.img-logo{
    margin: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ===== EFECTO DE TIPEO EN HERO ===== */
.hero-subtitle {
    font-size: 1.2rem;
    color: #11161d;
    font-weight: bold;
    margin-bottom: 2rem;
    max-width: 500px;
    min-height: 3.5rem; /* Evita saltos cuando el texto se borra */
}

.cursor {
    display: inline-block;
    color: #3b82f6;
    font-weight: 300;
    animation: parpadeo 0.8s infinite;
    margin-left: 2px;
}

@keyframes parpadeo {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Ajuste en móviles */
@media (max-width: 768px) {
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }
}

.floating-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card-icon {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    font-size: 5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===== BOTONES ===== */
.btn-primary {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #3b82f6;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #3b82f6;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 5rem 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== SERVICIOS ===== */
.servicios {
    background: white;
}

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

.servicio-card {
    background: #f8fafc;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.servicio-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.servicio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

.servicio-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ===== HERRAMIENTAS ===== */
.herramientas {
    background: #f1f5f9;
}

.herramientas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.herramienta-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.herramienta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.herramienta-card.featured {
    border: 2px solid #3b82f6;
    background: #f8faff;
}

.herramienta-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.herramienta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #0f172a;
}

.herramienta-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.feature-list {
    text-align: left;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.feature-list li {
    padding: 0.3rem 0;
    color: #334155;
    font-size: 0.95rem;
}

/* ===== NOSOTROS ===== */
.nosotros {
    background: white;
}

.nosotros-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.nosotros-texto p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.member {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    min-width: 280px;
    flex: 1;
    max-width: 400px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.member .avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    border: 3px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member .member-info {
    flex: 1;
    text-align: left;
}

.member h4 {
    font-size: 1rem;
    color: #0f172a;
    margin: 0 0 0.3rem 0;
}

.member p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ===== VERSIÓN MÓVIL ===== */
@media (max-width: 768px) {
    .team-members {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .member {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
        min-width: unset;
        width: 100%;
        max-width: 340px;
    }

    .member .avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 0.5rem;
    }

    .member .member-info {
        text-align: center;
        width: 100%;
    }

    .member h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .member p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .member {
        padding: 1.5rem 1rem;
        max-width: 280px;
    }

    .member .avatar {
        width: 100px;
        height: 100px;
    }
}

/* ===== CONTACTO ===== */
.contacto {
    background: #f8fafc;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#contact-form button {
    align-self: flex-start;
}

#form-message {
    margin-top: 0.5rem;
    font-weight: 500;
    min-height: 2rem;
}

#form-message.success {
    color: #16a34a;
}

#form-message.error {
    color: #dc2626;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.contacto-info h3 {
    font-size: 1.4rem;
    color: #0f172a;
}

.contacto-info p {
    font-size: 1.05rem;
    color: #475569;
}

.contacto-info a {
    color: #3b82f6;
    font-weight: 500;
}

.contacto-info a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 2rem;
    margin-top: 0.5rem;
}

.social-links a {
    transition: transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.15);
}

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: #3b82f6;
}

.footer-small {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #contact-form button {
        align-self: stretch;
    }

    .contacto-info {
        text-align: center;
        align-items: center;
    }

    .team-members {
        flex-direction: column;
        align-items: center;
    }

    .member {
        width: 100%;
        max-width: 320px;
    }

    .floating-cards .card-icon {
        padding: 1.5rem;
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .herramientas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    .servicio-card {
        padding: 1.8rem 1.2rem;
    }
}