/* VARIABLES */
:root {
    --color-primary: hsl(5, 95%, 59%); /* Naranja */
    --color-secondary: hsl(192, 100%, 32%); /* Azul */

    --color-white: #ffffff;
    --color-black: #000000;
    --color-light-gray: hsl(0, 0%, 96%);
    --color-dark-gray: hsl(0, 0%, 39%);

    --shadow-light: -2px 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: -3px 3px 8px rgba(0, 0, 0, 0.2);
    --shadow-dark: -4px 4px 12px rgba(0, 0, 0, 0.3);
    
    --font-family-sans: 'Roboto', sans-serif;
    --font-weight-regular: 400;
}

/* RESET */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

ul, ol {
    list-style: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* LAYOUT */
html {
    scroll-behavior: smooth;
}

.main-column {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 1.5rem;
}

/* Inputs y botones */
input,
textarea,
button {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius-small);
}

input:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--color-primary);
    border-color: var(--color-primary);
}

button {
    background-color: var(--color-primary);
    color: var(--color-light);
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--color-accent);
}

.btn {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 3rem;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
}

/* ocultar elementos visualmente pero los mantiene accesibles para tecnologías asistivas como lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    overflow: hidden;
}

/* GENERAL */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

.main-header {
    padding: 1rem 1.5rem;
    background-color: var(--color-white);
    box-shadow: 0 2px 4px var(--shadow-light);

    .main-column {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .claim {
        font-size: 1.4rem;
    }
}

.block-90 {
    padding-block: 90px;
}

.main-title {
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.2; 
}

.title {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
}

.btn-group {
    display: flex;
    justify-content: center;
}

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    .main-title {
        text-shadow: var(--shadow-medium);
    }

    .content {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }
}

.overlay::before {
    content: "";
    position: absolute;
    inset: 0; 
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
} 

.hero > * {
    position: relative;
    z-index: 2;
}

.landing-horario-fichaje .hero {
    background-image: url("../images/time-laboris-control-horarios.webp");
}

.landing-asistencia-presencia .hero {
    background-image: url("../images/time-laboris-controla-la-asistencia-de-tu-equipo-en-tiempo-real.webp");
}

.landing-asistencia-presencia .card-ghost {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.landing-software-aplicaciones .hero {
    background-color: hsl(200, 91%, 95%);
}

.landing-software-aplicaciones .hero .g-2-col {
    gap: 0;
}

.landing-software-aplicaciones .hero {
    padding-block: 90px;
    background-image: url("../images/time-laboris-app-movil.png");
    background-position: right bottom;
    background-size: contain;
    background-repeat: no-repeat;
}

.landing-software-aplicaciones .hero .box {
    width: 80%;
}

.landing-rafael-molina .hero {
    background-color: hsl(200, 91%, 95%);
}

.landing-rafael-molina .hero .g-2-col {
    gap: 0;
}

.landing-rafael-molina .hero {
    padding-block: 90px;
    background-image: url("../images/time-laboris-app-movil.png");
    background-position: right bottom;
    background-size: contain;
    background-repeat: no-repeat;
}

.landing-rafael-molina .hero .box {
    width: 80%;
}

.numbers {
    padding-bottom: 90px;

    .card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

.brands .combo a {
    display: block;
    width: 100px;
}

.features {

    .grid {
        display: grid;
        gap: 0.5rem;
    }

    .card {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.g-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.g-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.form-wrapper {
    background-color: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.care .grid {
    gap: 3rem;
}

.card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.card-ghost {
    background-color: transparent !important;
    border-color: var(--color-white);
}

/* Carrusel */
.carousel-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 calc((100% - 2rem) / 3); /* 3 items + 2 gaps */
    scroll-snap-align: start;
}

.carousel-item img {
    max-width: 100%;
    height: 40px;
    margin-bottom: 1rem;
}

.carousel-button {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4rem;
}

.carousel-button:hover {
    color: var(--color-primary);
}

.carousel-button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* FOOTER */
.main-footer {
    background: #F4F4F4;
    width: 100%;
    min-height: 307px;
    padding-block: 2rem;
    color: #5A5A5A;

    a {
        color: #5A5A5A;
        text-decoration: none;
    }
    
    .row-1 img {
        max-width: 120px;
    }


    .texto-pyme {
        font-size: 10px;
        max-width: 120px;
        margin-top: 8px;
    }

    .rrss {
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-white);
        border-radius: 3rem;
    }

    .rrss:last-child img {
        width: 21px;
        height: 21px;
    }

    .row-3 .grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        gap: 1.5rem;
    }

}

/* UTILITY CLASSES */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.t-primary {
    color: var(--color-primary);
}

.t-secondary {
    color: var(--color-secondary);
}

.t-white {
    color: var(--color-white);
}

.t-grey {
    color: #646464;
}

.t-center {
    text-align: center;
}

.t-regular {
    font-weight: var(--font-weight-regular);
}

.t-18 {
    font-size: 1.125rem; /* 18px */
}

.t-24 {
    font-size: 1.5rem; /* 24px */
}

.t-40 {
    font-size: 2.8rem;
}

.combo {
    display: flex;
    align-items: center;
}

.inline-block {
    display: inline-block;
}

.space-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center
}

.overflow-x {
    overflow-x: auto;
}

.gap-8 {
    gap: 0.5rem;
}

.gap-16 {
    gap: 1rem;
}

.gap-24 {
    gap: 1.5rem;
}

.gap-32 {
    gap: 2rem;
}

.gap-48 {
    gap: 3rem;
}

.mb-16 {
    margin-bottom: 1rem;
}

.mb-24 {
    margin-bottom: 1.5rem;
}

.mb-32 {
    margin-bottom: 2rem;
}

.mb-48 {
    margin-bottom: 3rem;
}

.radius-8 {
    border-radius: 8px;
}

.radius-12 {
    border-radius: 12px;
}

.border-color {
    border: 1px solid var(--color-primary);
}

.bg-neutral {
    padding: 90px 3rem;
    background-color: hsl(200, 91%, 95%);
}

/* Breakpoint Mobile */
@media (max-width: 1179.98px) {
    .landing-software-aplicaciones .hero::before {
        content: "";
        position: absolute;
        inset: 0; 
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1;
    } 

    .landing-software-aplicaciones .hero .box {
        width: 100%;

        h2,
        .t-secondary,
        h3,
        p,
        li {color: #ffffff;}
    }

    .landing-rafael-molina .hero::before {
        content: "";
        position: absolute;
        inset: 0; 
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1;
    } 

    .landing-rafael-molina .hero .box {
        width: 100%;

        h2,
        .t-secondary,
        h3,
        p,
        li {color: #ffffff;}
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .main-header .claim {
        display: none;
    }

    .main-header .logo {
        max-width: 160px;
    }

    .hero .content {
        grid-template-columns: 1fr;
    }

    .hero .col-2 {
        margin-top: 2rem;
    }


    .features .card {
        align-items: flex-start;
        text-align: left;
    }

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

    .carousel-item {
        flex: 0 0 calc(100% - 2rem); /* 1 item + 2 gaps */
    }

    .block-90 {
        padding-block: 60px;
    }

    .t-center {
        text-align: left;
    }

    .bg-neutral {
        padding-inline: 1.5rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .title {
        font-size: 1.5rem;
    }

    main .btn {
        display: block;
        width: 100%;
    }

    .g-2-col {
        grid-template-columns: 1fr;
    }

    .g-3-col {
        grid-template-columns: 1fr;
    }

    .main-footer .row-2 {
        flex-direction: column;
        align-items: flex-start;
    }
}