/* **********************************/
/* ajustes GLOBALES                 */
/* **********************************/
:root {
    --primary: #0b1c2d;
    --secondary: #00c48c;
    --accent: #3b82f6;
    --text: #1f2933;
    --text-light: #e5e7eb;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --card-bg: #ffffff;
}


body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    font-family: 'Inter', system-ui, sans-serif;
}


header {
    background: var(--primary);
    /*padding: 15px 40px;*/
    padding: 2px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}


/* LOGO EmbiotTech */
.logo {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Separacion entre Simbol y "EmbiotTech" */
    cursor: pointer;
    /*font-size: 1.4rem;*/
    font-size: 1.8rem;
    font-weight: 600;
    user-select: none;
    color: white;
}

.logo-icon {
    /*height: 36px;*/
    height: 62px;
    /* Tamaño del Simbol */
    width: auto;
}

.logo .brand {
    display: inline-flex;
    align-items: baseline;
}

.logo .embiot {
    color: #ffffff;
    /* o var(--text-primary) */
}

.logo .tech {
    margin-left: 10px;
    color: #00C48C;
    /* verde EmbiotTech */
}

.logo .tagline {
    margin-left: 5px;
    /* Separacion entre "EmbiotTech" y el eslogan */
    /*font-size: 0.85rem;*/
    font-size: 1.2rem;
    /* Tamaño del eslogan */
    font-weight: 400;
    color: #9CA3AF;
    /* gris técnico */
    white-space: nowrap;
}


article {
    /* Ajusta los 100px según la altura real de tu header */
    scroll-margin-top: 100px; 
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}


/* Estilo para la pagina actual */
.navbar ul li a.active {
    font-weight: bold;
    color: #00c48c;
    /* Cambia el color según tu diseño */
    text-decoration: underline;
}

.navbar a {
    color: white;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

/* Animació de subrrallado de menú al poner cursor encima*/
.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/*
.hero {
    padding: 80px 40px;
    max-width: 900px;
}*/

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--primary);
    color: white;
}






/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--bg-dark);
        color: var(--text-light);
    }

    .home-service-card,
    .project-card {
        background: #111827;
    }
}


@media (max-width: 1024px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 50px 20px;
    }

    .service-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-image-wrapper {
        width: 100%;
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    .home-services-grid {
        grid-template-columns: 1fr;
    }
}









/* **********************************/
/* Selector de Idiomas              */
/* **********************************/
.lang-switch {
    display: inline-flex;
    gap: 8px;
}

.lang-switch button {
    background: none;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-switch button:hover {
    background: var(--secondary);
    color: white;
}

.lang-switch button.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.4);
    transform: translateY(-1px);
}





/* **********************************/
/* Pagina de INDEX                  */
/* **********************************/
.index-intro {
    max-width: 900px;
    margin-bottom: 40px;
}

.why-embiot li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.why-embiot strong {
    color: #00C48C;
    /* verde EmbiotTech */
}


.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}


.home-service-image {
    display: block;
    margin: 20px auto 0;
    max-width: 120px;
    width: 100%;
    opacity: 0.9;
    padding-bottom: 20px;
}

/* Efecto hover sobre laimagens de servicios */
.home-service-card:hover .home-service-image {
    opacity: 1;
    transform: scale(1.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.home-service-card,
.project-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-service-card:hover,
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.home-service-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-service-card h2 {
    margin-top: 0;
    color: var(--primary);
}

.home-service-card ul {
    padding-left: 18px;
}

.home-service-card li {
    margin-bottom: 6px;
}

.home-services-cta {
    margin-top: 60px;
    padding: 40px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 6px;
}




/* **********************************/
/* Pagina de CONTACTO               */
/* **********************************/
.content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-info p {
    line-height: 1.6;
}

.contact-form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-status {
    margin-top: 12px;
    font-size: 0.9rem;
}

.form-status.success {
    color: #00c48c;
}

.form-status.error {
    color: #e74c3c;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}





/* **********************************/
/* Pagina de PROYECTOS              */
/* **********************************/
.projects-intro {
    max-width: 800px;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;              /* espacio entre imagen y contenido*/
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/*
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
}*/


.project-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #ffffff; /* opcional, relleno neutro */
    padding: 1px;       /* opcional, da aire visual */
}

.project-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background: #f5f7f9;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-content {
    padding: 25px;
}

.project-content h2 {
    margin-top: 0;
    color: var(--primary);
}

.project-content h3 {
    margin-bottom: 10px;
    margin-top: 20px;
}

.tech-list {
    list-style: none;
    padding-left: 0;
}

.tech-list li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.tech-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--secondary);
}






/* **********************************/
/* Pagina de SERVICIOS              */
/* **********************************/
.services-intro {
    max-width: 900px;
    margin-bottom: 40px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-top: 32px;
}


.service-image {
    display: block;
    margin: 20px auto 0;
    max-width: 120px;
    width: 100%;
    opacity: 0.9;
    padding-bottom: 20px;
}

/* Efecto hover sobre laimagens de servicios */
.service-card:hover .service-image {
    opacity: 1;
    transform: scale(1.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.service-card
{
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card h2 {
    margin-top: 0;
    color: var(--primary);
}

.service-card ul {
    padding-left: 18px;
}

.service-card li {
    margin-bottom: 6px;
}

.services-cta {
    margin-top: 60px;
    padding: 40px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 6px;
}






.service-horizontal {
    display: flex;
    align-items: center; /* centra la imagen verticalmente */
    gap: 32px;
}

.service-image-wrapper {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-wrapper img {
    max-width: 120px;
    width: 100%;
    opacity: 0.9;
}

.service-content {
    flex: 1;
}


/* **********************************/
/* Pagina de EMPRESA                */
/* **********************************/
.company-intro {
    max-width: 900px;
    margin-bottom: 40px;
}

.company-section {
    margin-bottom: 40px;
}

.company-section h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.company-section ul {
    padding-left: 18px;
}

.company-section li {
    margin-bottom: 6px;
}

.company-cta {
    margin-top: 60px;
    padding: 40px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 6px;
}