/* ======================================================
   ESPACIO CREATIVO ALCALÁ
   Proyecto: TF-CLIENTE-001
   Desarrollo: TecniFlow
   Versión: 1.0
   ====================================================== */


/* ======================================================
   01. VARIABLES CORPORATIVAS
   ====================================================== */

:root {

    --fucsia: #c52865;
    --morado: #66338e;
    --azul: #117ead;
    --turquesa: #159d9e;
    --verde: #228c4f;
    --lima: #78b542;
    --naranja: #e78b28;
    --rojo: #d5403b;

    --whatsapp: #168447;
    --whatsapp-hover: #116c39;

    --blanco: #ffffff;
    --fondo: #f8f6fa;
    --texto: #242333;
    --texto-secundario: #626170;
    --borde: #e9e5ed;

    --radio: 18px;

    --sombra: 0 8px 28px rgba(36, 35, 51, 0.07);
    --sombra-hover: 0 15px 35px rgba(36, 35, 51, 0.13);

    --transicion: 0.25s ease;

    --ancho-maximo: 1200px;

}


/* ======================================================
   02. CONFIGURACIÓN GENERAL
   ====================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {

    font-family: "Segoe UI", Arial, sans-serif;

    background: var(--blanco);

    color: var(--texto);

    font-size: 16px;

    line-height: 1.7;

}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {

    outline: 3px solid var(--morado);

    outline-offset: 5px;

}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

.seccion {

    max-width: var(--ancho-maximo);

    margin: 0 auto;

    padding: 90px 28px;

}


/* ======================================================
   03. CABECERA Y NAVEGACIÓN
   ====================================================== */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    padding: 18px max(5%, calc((100% - 1200px) / 2));

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--borde);

    box-shadow: 0 3px 15px rgba(36, 35, 51, 0.04);

}

.header nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 27px;

}

.header nav a {

    font-size: 0.95rem;

    font-weight: 600;

    color: var(--texto);

    position: relative;

    transition: color var(--transicion);

}

.header nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background: var(--fucsia);

    transition: width var(--transicion);

}

.header nav a:hover {

    color: var(--fucsia);

}

.header nav a:hover::after {

    width: 100%;

}


/* ======================================================
   04. LOGOTIPO CORPORATIVO
   ====================================================== */

.logo {

    display: flex;

    flex-direction: column;

    align-items: center;

    flex-shrink: 0;

    line-height: 1;

}

.logo-espacio {

    font-family: Georgia, "Times New Roman", serif;

    font-style: italic;

    font-size: 29px;

    color: #252525;

    margin-bottom: 3px;

}

.logo-creativo {

    display: flex;

    font-size: 30px;

    font-weight: 900;

    letter-spacing: 1px;

}

.logo-creativo span:nth-child(1) {
    color: var(--fucsia);
}

.logo-creativo span:nth-child(2) {
    color: var(--morado);
}

.logo-creativo span:nth-child(3) {
    color: var(--azul);
}

.logo-creativo span:nth-child(4) {
    color: var(--turquesa);
}

.logo-creativo span:nth-child(5) {
    color: var(--verde);
}

.logo-creativo span:nth-child(6) {
    color: var(--naranja);
}

.logo-creativo span:nth-child(7) {
    color: var(--rojo);
}

.logo-creativo span:nth-child(8) {
    color: var(--fucsia);
}

.logo-alcala {

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 7px;

    padding-left: 7px;

    margin-top: 7px;

}


/* ======================================================
   05. BOTONES
   ====================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 13px 23px;

    border: 2px solid transparent;

    border-radius: 10px;

    font-size: 0.95rem;

    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transicion),
        transform var(--transicion),
        box-shadow var(--transicion);

}

.btn:hover {

    transform: translateY(-2px);

    box-shadow: var(--sombra-hover);

}

.btn svg {

    width: 20px;

    height: 20px;

    flex-shrink: 0;

}

.btn-whatsapp {

    color: var(--blanco);

    background: var(--whatsapp);

}

.btn-whatsapp:hover {

    background: var(--whatsapp-hover);

}

.btn-secundario {

    color: var(--fucsia);

    background: var(--blanco);

    border-color: var(--fucsia);

}

.btn-secundario:hover {

    background: #fff2f7;

}

.btn-principal {

    background: var(--fucsia);

    color: var(--blanco);

}

.btn-principal:hover {

    background: var(--morado);

}


/* ======================================================
   06. PRESENTACIÓN PRINCIPAL - HERO
   ====================================================== */

.hero {

    position: relative;

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;

    gap: 65px;

    min-height: 570px;

    padding: 85px max(5%, calc((100% - 1200px) / 2));

    overflow: hidden;

    background:

        radial-gradient(
            circle at 90% 15%,
            rgba(197, 40, 101, 0.09),
            transparent 40%
        ),

        radial-gradient(
            circle at 80% 95%,
            rgba(21, 157, 158, 0.12),
            transparent 40%
        ),

        linear-gradient(
            135deg,
            #ffffff,
            #faf7fc
        );

}

.hero-contenido {

    position: relative;

    z-index: 2;

}

.etiqueta {

    color: var(--fucsia);

    font-size: 0.82rem;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 18px;

}

.hero h1 {

    font-size: clamp(2.6rem, 4.7vw, 4.4rem);

    font-weight: 800;

    letter-spacing: -1.8px;

    margin-bottom: 25px;

}

.hero h1 span {

    display: block;

    color: var(--fucsia);

}

.hero-descripcion {

    max-width: 650px;

    font-size: 1.15rem;

    color: var(--texto-secundario);

    margin-bottom: 22px;

}

.hero-ubicacion {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--texto-secundario);

    margin-bottom: 30px;

}

.hero-ubicacion svg {

    width: 20px;

    height: 20px;

    color: var(--fucsia);

}

.hero-botones {

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

}


/* ======================================================
   07. ELEMENTO VISUAL CREATIVO
   ====================================================== */

.hero-visual {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 350px;

}

.creatividad {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    width: 100%;

    max-width: 350px;

    aspect-ratio: 1;

    padding: 30px;

    border-radius: 35% 65% 58% 42% / 46% 40% 60% 54%;

    color: var(--blanco);

    text-align: center;

    background: linear-gradient(
        140deg,
        var(--fucsia) 0%,
        var(--morado) 48%,
        var(--azul) 75%,
        var(--turquesa) 100%
    );

    box-shadow: 0 25px 55px rgba(102, 51, 142, 0.24);

}

.creatividad svg {

    width: 80px;

    height: 80px;

    stroke-width: 1.5;

    margin-bottom: 20px;

}

.creatividad p {

    font-size: 2rem;

    font-family: Georgia, serif;

    font-style: italic;

    line-height: 1.2;

}

.creatividad strong {

    font-size: 3.8rem;

    line-height: 1.2;

    font-weight: 800;

}


/* ======================================================
   08. FRANJA DE COLORES CORPORATIVOS
   ====================================================== */

.franja-colores {

    display: flex;

    width: 100%;

    height: 7px;

}

.franja-colores span {

    flex: 1;

}

.franja-colores span:nth-child(1) {
    background: var(--fucsia);
}

.franja-colores span:nth-child(2) {
    background: var(--morado);
}

.franja-colores span:nth-child(3) {
    background: var(--azul);
}

.franja-colores span:nth-child(4) {
    background: var(--turquesa);
}

.franja-colores span:nth-child(5) {
    background: var(--lima);
}

.franja-colores span:nth-child(6) {
    background: var(--naranja);
}

.franja-colores span:nth-child(7) {
    background: var(--rojo);
}


/* ======================================================
   09. TÍTULOS DE SECCIONES
   ====================================================== */

.seccion-titulo {

    max-width: 800px;

    margin: 0 auto 50px;

    text-align: center;

}

.seccion-titulo h2 {

    font-size: clamp(1.9rem, 3.5vw, 2.8rem);

    font-weight: 800;

    margin-bottom: 18px;

}

.seccion-titulo > p:last-child {

    color: var(--texto-secundario);

    font-size: 1.08rem;

}


/* ======================================================
   10. TARJETAS DE SERVICIOS
   ====================================================== */

.servicios-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;

}

.servicio-card {

    --color-servicio: var(--fucsia);

    position: relative;

    padding: 30px;

    min-width: 0;

    background: var(--blanco);

    border: 1px solid var(--borde);

    border-top: 4px solid var(--color-servicio);

    border-radius: var(--radio);

    box-shadow: var(--sombra);

    transition:
        transform var(--transicion),
        box-shadow var(--transicion);

}

.servicio-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--sombra-hover);

}

.servicio-icono {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;

    background: var(--color-servicio);

    color: var(--blanco);

    border-radius: 17px;

    margin-bottom: 22px;

}

.servicio-icono svg {

    width: 31px;

    height: 31px;

    stroke-width: 1.8;

}

.servicio-card h3 {

    font-size: 1.24rem;

    margin-bottom: 13px;

}

.servicio-card p {

    color: var(--texto-secundario);

    font-size: 0.97rem;

}

.color-fucsia {
    --color-servicio: var(--fucsia);
}

.color-morado {
    --color-servicio: var(--morado);
}

.color-azul {
    --color-servicio: var(--azul);
}

.color-turquesa {
    --color-servicio: var(--turquesa);
}

.color-verde {
    --color-servicio: var(--verde);
}

.color-lima {
    --color-servicio: var(--lima);
}

.color-naranja {
    --color-servicio: var(--naranja);
}

.color-rojo {
    --color-servicio: var(--rojo);
}


/* ======================================================
   11. SOBRE NOSOTROS
   ====================================================== */

.nosotros {

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 70px;

    background: var(--fondo);

    border-radius: 28px;

    padding: 65px 55px;

}

.nosotros h2 {

    font-size: clamp(2rem, 3.5vw, 2.8rem);

    margin-bottom: 24px;

}

.nosotros h2 span {

    color: var(--fucsia);

    display: block;

}

.nosotros-contenido > p:not(.etiqueta) {

    color: var(--texto-secundario);

    margin-bottom: 20px;

}

.nosotros-contenido .btn {

    margin-top: 10px;

}

.nosotros-visual {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 50px 25px;

    min-height: 320px;

    text-align: center;

    border-radius: 24px;

    color: var(--blanco);

    background: linear-gradient(
        145deg,
        var(--morado),
        var(--fucsia)
    );

}

.nosotros-visual svg {

    width: 70px;

    height: 70px;

    margin-bottom: 25px;

    stroke-width: 1.5;

}

.nosotros-visual h3 {

    font-size: 2rem;

    margin-bottom: 15px;

}

.nosotros-visual p {

    font-size: 0.95rem;

}


/* ======================================================
   12. TIPOS DE CLIENTES
   ====================================================== */

.clientes-grid {

    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 20px;

}

.cliente-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 16px;

    padding: 30px 12px;

    border: 1px solid var(--borde);

    border-radius: var(--radio);

    text-align: center;

    background: var(--blanco);

    transition:
        transform var(--transicion),
        box-shadow var(--transicion);

}

.cliente-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--sombra);

}

.cliente-card svg {

    width: 44px;

    height: 44px;

    color: var(--morado);

    stroke-width: 1.7;

}

.cliente-card:nth-child(2) svg {
    color: var(--azul);
}

.cliente-card:nth-child(3) svg {
    color: var(--fucsia);
}

.cliente-card:nth-child(4) svg {
    color: var(--turquesa);
}

.cliente-card:nth-child(5) svg {
    color: var(--verde);
}

.cliente-card h3 {

    font-size: 1.08rem;

}


/* ======================================================
   13. LLAMADA A LA ACCIÓN
   ====================================================== */

.cta {

    position: relative;

    padding: 70px 25px;

    text-align: center;

    color: var(--blanco);

    background: linear-gradient(
        115deg,
        var(--morado),
        var(--fucsia)
    );

}

.cta h2 {

    font-size: clamp(2rem, 4vw, 3.2rem);

    margin-bottom: 18px;

}

.cta p {

    font-size: 1.15rem;

    margin-bottom: 28px;

}

.cta .btn {

    border-color: rgba(255, 255, 255, 0.7);

}


/* ======================================================
   14. CONTACTO
   ====================================================== */

.contacto-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;

}

.contacto-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-width: 0;

    gap: 14px;

    padding: 30px 15px;

    background: var(--fondo);

    border-radius: var(--radio);

    text-align: center;

    border: 1px solid var(--borde);

}

.contacto-card svg {

    width: 36px;

    height: 36px;

    color: var(--fucsia);

}

.contacto-card:nth-child(2) svg {
    color: var(--verde);
}

.contacto-card:nth-child(3) svg {
    color: var(--azul);
}

.contacto-card:nth-child(4) svg {
    color: var(--morado);
}

.contacto-card h3 {

    font-size: 1.08rem;

}

.contacto-card p,
.contacto-card a {

    color: var(--texto-secundario);

    font-size: 0.89rem;

    overflow-wrap: anywhere;

}

.contacto-card a:hover {

    color: var(--fucsia);

    text-decoration: underline;

}


/* ======================================================
   15. PIE DE PÁGINA
   ====================================================== */

.footer {

    background: #282333;

    color: var(--blanco);

    padding: 50px max(5%, calc((100% - 1200px) / 2)) 20px;

}

.footer-contenido {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 30px;

    padding-bottom: 35px;

}

.footer h3 {

    font-size: 1.4rem;

    margin-bottom: 12px;

}

.footer p {

    color: #d7d2df;

    font-size: 0.95rem;

}

.footer-enlaces {

    display: flex;

    flex-wrap: wrap;

    gap: 25px;

}

.footer a {

    transition: color var(--transicion);

}

.footer a:hover {

    color: #f58ab6;

}

.footer-inferior {

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 18px;

    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

}

.footer-inferior a {

    color: #82e6d5;

    font-weight: 700;

}


/* ======================================================
   16. BOTÓN FLOTANTE DE WHATSAPP
   ====================================================== */

.whatsapp-flotante {

    position: fixed;

    bottom: 25px;

    right: 25px;

    z-index: 999;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 60px;

    height: 60px;

    color: var(--blanco);

    background: var(--whatsapp);

    border-radius: 50%;

    box-shadow: 0 8px 25px rgba(22, 132, 71, 0.3);

    transition:
        background var(--transicion),
        transform var(--transicion);

}

.whatsapp-flotante:hover {

    background: var(--whatsapp-hover);

    transform: scale(1.08);

}

.whatsapp-flotante svg {

    width: 30px;

    height: 30px;

}


/* ======================================================
   17. DISEÑO RESPONSIVE - TABLETAS
   ====================================================== */

@media (max-width: 1024px) {

    .header {

        gap: 20px;

        flex-wrap: wrap;

        justify-content: center;

        padding: 15px 25px;

    }

    .header nav {

        gap: 20px;

        flex-wrap: wrap;

    }

    .hero {

        gap: 35px;

        padding: 65px 35px;

    }

    .servicios-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

    .nosotros {

        margin: 0 25px;

        gap: 35px;

        padding: 45px 35px;

    }

    .clientes-grid {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

    .contacto-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}


/* ======================================================
   18. DISEÑO RESPONSIVE - TELÉFONOS
   ====================================================== */

@media (max-width: 768px) {

    html {

        scroll-padding-top: 200px;

    }

    .header {

        flex-direction: column;

        gap: 15px;

    }

    .header nav {

        gap: 12px 20px;

        width: 100%;

    }

    .header nav a {

        font-size: 0.88rem;

    }

    .header > .btn {

        padding: 8px 17px;

    }

    .hero {

        grid-template-columns: 1fr;

        gap: 35px;

        padding: 50px 22px;

        text-align: center;

    }

    .hero h1 {

        letter-spacing: -1px;

    }

    .hero-descripcion {

        margin-left: auto;

        margin-right: auto;

        font-size: 1.05rem;

    }

    .hero-ubicacion {

        justify-content: center;

    }

    .hero-botones {

        justify-content: center;

    }

    .hero-visual {

        min-height: auto;

    }

    .creatividad {

        max-width: 260px;

    }

    .creatividad svg {

        width: 55px;

        height: 55px;

        margin-bottom: 12px;

    }

    .creatividad p {

        font-size: 1.5rem;

    }

    .creatividad strong {

        font-size: 2.8rem;

    }

    .seccion {

        padding: 60px 20px;

    }

    .seccion-titulo {

        margin-bottom: 30px;

    }

    .servicios-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    .servicio-card {

        padding: 25px;

    }

    .nosotros {

        grid-template-columns: 1fr;

        margin: 0 15px;

        padding: 35px 25px;

        gap: 30px;

    }

    .nosotros-visual {

        min-height: 260px;

        padding: 35px 20px;

    }

    .clientes-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 15px;

    }

    .contacto-grid {

        grid-template-columns: 1fr;

    }

    .cta {

        padding: 50px 22px;

    }

    .footer-contenido,
    .footer-inferior {

        flex-direction: column;

        text-align: center;

        align-items: center;

    }

    .footer-enlaces {

        justify-content: center;

    }

    .footer {

        padding-bottom: 90px;

    }

    .whatsapp-flotante {

        width: 55px;

        height: 55px;

        bottom: 18px;

        right: 18px;

    }

}


/* ======================================================
   19. TELÉFONOS PEQUEÑOS
   ====================================================== */

@media (max-width: 400px) {

    .hero h1 {

        font-size: 2.2rem;

    }

    .hero-botones {

        flex-direction: column;

    }

    .hero-botones .btn {

        width: 100%;

    }

    .etiqueta {

        font-size: 0.73rem;

        letter-spacing: 1px;

    }

}


/* ======================================================
   20. ACCESIBILIDAD
   ====================================================== */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        transition-duration: 0.01ms !important;

    }

}


/* ======================================================
   FIN DE LA HOJA DE ESTILOS
   ====================================================== */