﻿/* 
   landing.css  —  ChatLink Landing Page
   Responsivo: móvil primero, luego desktop

*/


/* Página base */

.landing-page {
    background: white;
    min-height: 100vh;
    overflow-x: hidden;
}


/* Header  */

.landing-header {
    background: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
    width: auto;
}

.login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    white-space: nowrap;
}

    .login-btn:hover {
        background: #4aba6d;
        text-decoration: none;
    }


/* Hero */

.landing-hero {
    display: flex;
    flex-direction: column; /* móvil: apilado */
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    flex: 1;
    width: 100%;
}

    .hero-content h2 {
        font-size: 28px;
        color: var(--secondary-color);
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 16px;
        color: #4a4a4a;
        margin-bottom: 28px;
        line-height: 1.7;
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
    }

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}


/* celular */

.phone-mockup {
    /* En móvil: escala para caber en pantalla */
    width: min(260px, 80vw);
    height: min(520px, calc(80vw * 2));
    border: 3px solid #ddd;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--secondary-color) 100%);
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.12);
}

.phone-screen {
    background: white;
    margin: 12px;
    height: calc(100% - 24px);
    border-radius: 20px;
    padding: 16px;
    overflow: hidden;
}

.phone-header {
    background: var(--secondary-color);
    color: white;
    padding: 10px;
    margin: -16px -16px 10px -16px;
    border-radius: 20px 20px 0 0;
}

.phone-date {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

.phone-chat {
    background: white;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chat-name {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 13px;
}

.chat-msg {
    font-size: 12px;
    color: #666;
}


/* Features */

.features-section {
    background: var(--bg-light);
    padding: 50px 20px;
}

.section-title {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 36px;
    font-size: 26px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* móvil: 1 columna */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 28px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    }

.feature-icon {
    font-size: 44px;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 17px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}


/* Footer  */

.landing-footer {
    background: var(--secondary-color);
    color: white;
    padding: 28px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

    .landing-footer .tagline {
        margin-top: 6px;
        color: var(--primary-color);
        font-weight: 500;
    }


/*  BREAKPOINTS — tablet (≥ 600px)  */

@media (min-width: 600px) {

    .landing-header {
        padding: 14px 36px;
    }

    .header-logo {
        height: 46px;
    }

    .login-btn {
        font-size: 15px;
        padding: 11px 26px;
    }

    .landing-hero {
        padding: 50px 36px;
        gap: 44px;
    }

    .hero-content h2 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* tablet: 2 columnas */
    }

    .section-title {
        font-size: 28px;
    }
}


/*  BREAKPOINTS — desktop (≥ 900px) */

@media (min-width: 900px) {

    .landing-header {
        padding: 15px 50px;
    }

    .header-logo {
        height: 50px;
    }

    .login-btn {
        font-size: 16px;
        padding: 12px 30px;
    }

    /* Hero vuelve a ser horizontal */
    .landing-hero {
        flex-direction: row;
        text-align: left;
        padding: 70px 50px;
        gap: 60px;
        align-items: center;
    }

    .hero-content h2 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
        margin-left: 0;
        margin-right: 0;
    }

    /* vuelve a tamaño fijo en desktop */
    .phone-mockup {
        width: 300px;
        height: 600px;
    }

    .phone-screen {
        margin: 15px;
        height: calc(100% - 30px);
        border-radius: 15px;
        padding: 20px;
    }

    .phone-header {
        margin: -20px -20px 10px -20px;
        border-radius: 15px 15px 0 0;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* desktop: 3 columnas */
        gap: 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-section {
        padding: 60px 50px;
    }
}
