/* =========================

   Variables

========================= */

:root {

    --color-dark: #472153;

    --color-header: #000000;

    --color-accent: #C01551;

    --color-white: #ffffff;

    --color-black: #000000;    

    --container-width: 1200px;

}



/* =========================

   Reset básico

========================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background-color: var(--color-white);

    color: var(--color-black);

    line-height: 1.6;

}



/* =========================

   Layout

========================= */

.container {

    max-width: var(--container-width);

    margin: 0 auto;

    padding: 0 20px;

}



/* =========================

   Header

========================= */

.site-header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    background-color: var(--color-header);

    z-index: 1000;

}



/* Header con degradado (futuro)

.site-header {

    background: linear-gradient(

        135deg,

        #472153 0%,

        #C01551 100%

    );

}

*/





.header-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 80px;

}



/* Logo */

.site-logo img {

    height: 40px;

    width: auto;

    display: block;

}





/* Navegación */

.main-navigation .menu {

    display: flex;

    list-style: none;

    gap: 30px;

}



.main-navigation .menu a {

    color: var(--color-white);

    text-decoration: none;

    font-weight: 500;

    position: relative;

}



.main-navigation .menu a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background-color: var(--color-accent);

    transition: width 0.3s ease;

}



.main-navigation .menu a:hover::after {

    width: 100%;

}



/* Botones */

.header-actions {

    display: flex;

    gap: 12px;

}



.btn {

    padding: 10px 18px;

    border-radius: 4px;

    font-size: 0.9rem;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.25s ease;

}



.btn-outline {

    border: 2px solid var(--color-white);

    color: var(--color-white);

}



.btn-outline:hover {

    background-color: var(--color-white);

    color: var(--color-dark);

}



.btn-primary {

    background-color: var(--color-accent);

    color: var(--color-white);

}



.btn-primary:hover {

    opacity: 0.85;

}



/* =========================

   Contenido

========================= */

/*.site-content {

    padding-top: 100px; /* espacio para el header fijo */

 */



/* Contenido editable HOME */

.home-content .container {

    display: flex;

    flex-direction: column;

    /*align-items: center;*/

}



.home-content .container > * {

    width: 100%;

    max-width: 800px;

}



body:not(.home) .site-content {

    padding-top: 100px;

}



.home-content {

    padding: 120px 0;

}



.home-content h2 {

    font-size: 2.2rem;

    font-weight: 800;

    margin-bottom: 30px;

}



.home-content p {

    max-width: 800px;

    margin-bottom: 24px;

    font-size: 1.05rem;

    line-height: 1.8;

}



.home-content h2 {

    /*text-align: center;*/

}



.home-content p {

    /*text-align: center;*/

}



.home-content .alignwide,

.home-content .alignfull {

    max-width: 800px;

    margin-left: auto;

    margin-right: auto;

}



.home-content-inner {

    max-width: 800px;

    margin: 0 auto;

    /*text-align: center;*/

}



/* =========================

   Footer

========================= */

.site-footer {

    background-color: var(--color-header);

    color: var(--color-white);

    padding: 40px 0;

    margin-top: 80px;

}



/* Footer con degradado (futuro)

.site-footer {

    background: linear-gradient(

        135deg,

        #472153 0%,

        #C01551 100%

    );

}

*/



.site-footer p {

    text-align: center;

    font-size: 0.9rem;

}



.footer-social a {

    width: 40px;

    height: 40px;

    border: 2px solid #333;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.25s ease;

}



.footer-social img {

    width: 18px;

    height: 18px;

    filter: brightness(0) invert(1);

}



.footer-social a:hover {

    background-color: var(--color-accent);

    border-color: var(--color-accent);

}





/* =========================

   HERO

========================= */

.hero {

    /*min-height: calc(100vh - 80px);*/

	min-height: 100vh;
	
    display: flex;

    align-items: center;

    background-color: var(--color-white);

}



.hero-inner {

    max-width: 900px;

}



.hero-title {

    font-size: 3.2rem;

    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 24px;

}



.hero-title span {

    color: var(--color-accent);

}



.hero-text {

    font-size: 1.2rem;

    max-width: 700px;

    margin-bottom: 40px;

    color: #c7c7c7;

}



.hero-actions {

    display: flex;

    gap: 16px;

    flex-wrap: wrap;

}



.hero-video {

    position: relative;

    overflow: hidden;

}



.hero-bg {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    z-index: 1;

}



.hero-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,0.6);

    z-index: 2;

}



.hero-inner {

    position: relative;

    z-index: 3;

}



/* =========================

   PROYECTOS DESTACADOS

========================= */

.featured-projects {

    padding: 120px 0;

    background-color: #f7f7f7;

}



.section-title {

    font-size: 2.2rem;

    font-weight: 800;

    margin-bottom: 60px;

}



.projects-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 30px;

}



.project-card {

    position: relative;

    background-color: #fff;

    border-radius: 8px;

    overflow: hidden;

    aspect-ratio: 1 / 1;

    text-decoration: none;

    box-shadow: 0 20px 40px rgba(0,0,0,0.08);

}



.project-card img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 40px;

    transition: transform 0.4s ease;

}



.project-card:hover img {

    transform: scale(1.05);

}



/* Overlay */

.project-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,0.75);

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 24px;

    opacity: 0;

    transition: opacity 0.3s ease;

}



.project-card:hover .project-overlay {

    opacity: 1;

}



.project-overlay h3 {

    color: #fff;

    font-size: 1.2rem;

    margin-bottom: 6px;

}



.project-overlay p {

    color: var(--color-accent);

    font-size: 0.9rem;

    font-weight: 600;

}



/* =========================

   PROYECTO INDIVIDUAL

========================= */

.project-single {

    padding: 120px 0;

}



.project-header {

    text-align: center;

    max-width: 900px;

    margin: 0 auto 80px;

}



.project-logo img {

    max-width: 380px;

    width: 100%;

    margin-bottom: 40px;

}



.project-title {

    font-size: 2.6rem;

    font-weight: 800;

    margin-bottom: 30px;

}



.project-meta {

    list-style: none;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 20px 40px;

    margin-bottom: 60px;

    font-size: 0.95rem;

}



.project-meta strong {

    color: var(--color-accent);

}



.project-info {

    max-width: 700px;

    margin-bottom: 60px;

    font-size: 1.1rem;

    text-align: center;

}



.project-content {

    max-width: 800px;

    margin: 0 auto;

    line-height: 1.8;

}



.project-content p {

    margin-bottom: 20px;

}



.project-nav {

    margin-bottom: 30px;

    text-align: center;

}



.project-logo {

    margin-top: 20px;

}



.project-back {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 0.85rem;

    font-weight: 600;

    color: var(--color-dark);

    opacity: 0.7;

    text-decoration: none;

    padding-bottom: 4px;

    border-bottom: 2px solid transparent;

    transition: all 0.25s ease;

}



.project-back:hover {

    opacity: 1;

    color: var(--color-accent);

    border-color: var(--color-accent);

    transform: translateX(-4px);

}



.current-menu-item > a,

.current-menu-ancestor > a {

    color: var(--color-accent);

}





/* =========================

   ARCHIVO DE PROYECTOS

========================= */

.projects-archive {

    padding: 120px 0;

}



.archive-header {

    text-align: center;

    max-width: 700px;

    margin: 0 auto 80px;

}



.archive-title {

    font-size: 3rem;

    font-weight: 800;

    margin-bottom: 20px;

}



.archive-description {

    font-size: 1.1rem;

    color: #555;

}



.project-card {

    cursor: pointer;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.project-card:hover {

    transform: translateY(-6px);

    box-shadow: 0 30px 60px rgba(0,0,0,0.15);

}



.project-card img {

    object-fit: contain;

}





/* =========================

   SOBRE NOSOTROS

========================= */

.about-page {

    padding-top: 80px;

    padding-bottom: 120px;

}



.about-content-inner {

    max-width: 800px;

    margin: 0 auto;

    text-align: center;

}



.about-content-inner h1 {

    font-size: 3rem;

    margin-bottom: 50px;

}



.about-content-inner h2 {

    font-size: 2.2rem;

    margin: 80px 0 40px;

}



.about-content-inner p {

    font-size: 1.2rem;

    line-height: 1.9;

    margin-bottom: 32px;

}



.about-content-inner ul {

    list-style: none;

    padding: 0;

    margin: 40px auto;

    max-width: 700px;

}



.about-content-inner li {

    font-size: 1.2rem;          /* igual que los párrafos */

    line-height: 1.9;           /* mismo interlineado */

    margin-bottom: 18px;

    padding-bottom: 18px;

    border-bottom: 1px solid #eee;

}



/* PRIMER ELEMENTO PEGADO ARRIBA */

.about-content-inner > *:first-child {

    margin-top: 0;

}





/* =========================

   CONTACTO

========================= */

/* =========================

   CONTACTO

========================= */



.contact-page {

    padding-top: 80px;

    padding-bottom: 120px;

}



.contact-content-inner {

    max-width: 700px;

    margin: 0 auto;

    text-align: center;

}



/* TÍTULOS */

.contact-content-inner h1 {

    font-size: 2.8rem;

    font-weight: 800;

    margin-bottom: 40px;

}



.contact-content-inner h2 {

    font-size: 2rem;

    font-weight: 700;

    margin: 60px 0 30px;

}



/* TEXTO */

.contact-content-inner p {

    font-size: 1.2rem;

    line-height: 1.9;

    margin-bottom: 28px;

    color: #555;

}



/* LINKS (emails, etc.) */

.contact-content-inner a {

    color: var(--color-accent);

    text-decoration: none;

    font-weight: 600;

}



.contact-content-inner a:hover {

    text-decoration: underline;

}





/* =========================

   ANIMACIONES SCROLL

========================= */

.animate {

    opacity: 0;

    transform: translateY(40px);

    transition: opacity 0.8s ease, transform 0.8s ease;

}



.animate.visible {

    opacity: 1;

    transform: translateY(0);

}



.btn:hover {

    transform: translateY(-2px);

}



a {

    transition: color 0.25s ease;

}



html {

    scroll-behavior: smooth;

}



/* =========================

   FOOTER AVANZADO

========================= */

.footer-inner {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 30px;

}



.footer-menu {

    list-style: none;

    display: flex;

    gap: 24px;

    padding: 0;

}



.footer-menu a {

    color: #aaa;

    text-decoration: none;

    font-weight: 500;

}



.footer-menu a:hover {

    color: var(--color-accent);

}



.footer-social {

    display: flex;

    gap: 16px;

}



.footer-social a {

    color: #fff;

    border: 2px solid #333;

    padding: 8px 12px;

    border-radius: 50px;

    font-size: 0.85rem;

    text-decoration: none;

    transition: all 0.25s ease;

}



.footer-social a:hover {

    background-color: var(--color-accent);

    border-color: var(--color-accent);

}



.footer-copy {

    font-size: 0.8rem;

    color: #777;

}



/* =========================

   MENÚ ACTIVO

========================= */

.main-navigation .menu li.current-menu-item > a,

.main-navigation .menu li.current-menu-ancestor > a,

.main-navigation .menu li.current_page_item > a {

    color: var(--color-accent);

}



/* Subrayado activo */

.main-navigation .menu li.current-menu-item > a::after,

.main-navigation .menu li.current-menu-ancestor > a::after,

.main-navigation .menu li.current_page_item > a::after {

    width: 100%;

}



/* =========================

   HEADER MOBILE

========================= */

.menu-toggle {

    display: none;

    background: none;

    border: none;

    color: #fff;

    font-size: 2rem;

    cursor: pointer;

}



@media (max-width: 768px) {



    .menu-toggle {

        display: block;

    }



    .main-navigation {

        position: fixed;

        top: 80px;

        left: 0;

        width: 100%;

        height: calc(100vh - 80px);

        background: #000;

        transform: translateX(-100%);

        transition: transform 0.3s ease;

        padding: 40px 20px;

    }



    .main-navigation.active {

        transform: translateX(0);

    }



    .main-navigation .menu {

        flex-direction: column;

        gap: 30px;

    }



    .header-actions {

        display: none;

    }

}



@media (max-width: 768px) {

    .hero video {
        display: none;
    }

    .hero {
        background-image: 
            linear-gradient(
                rgba(0,0,0,0.55),
                rgba(0,0,0,0.55)
            ),
            url('../img/hero-mobile.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}




@media (max-width: 768px) {

    .projects-grid {

        grid-template-columns: 1fr;

    }

}



@media (max-width: 768px) {

    .footer-menu {

        flex-direction: column;

        gap: 16px;

    }

}

@media (max-width: 768px) {
    .animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {

    /* Texto principal del hero en móvil */
    .hero-title,
    .hero-title span:not(#typed-text),
    .hero-text {
        color: #ffffff;
    }

    /* Mantener el color acento del texto animado */
    #typed-text {
        color: var(--color-accent);
    }
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
