/* =========================================
   CAFE CORTAO' - HACIENDA LAS LALAS
   Puerto Rico Coffee Hacienda Design
   ========================================= */

:root {
    --coffee-dark: #2b1b12;
    --coffee-brown: #4a2c1d;
    --coffee-medium: #70452d;
    --coffee-light: #a66a3f;
    --cream: #f5efe4;
    --cream-dark: #e8ddca;
    --green: #344936;
    --gold: #b58a4a;
    --white: #ffffff;
}


/* -----------------------------------------
   GENERAL
   ----------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--coffee-dark);
    font-family: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}


/* -----------------------------------------
   HERO
   ----------------------------------------- */

.hero-section {
    position: relative;
    height: 650px;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(25, 16, 10, 0.25), rgba(25, 16, 10, 0.75) );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 30px;
}

.brand-mark {
    font-size: 42px;
    margin-bottom: 18px;
}

.eyebrow {
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(58px, 9vw, 110px);
    font-weight: normal;
    letter-spacing: 1px;
}

.hero-line {
    width: 90px;
    height: 2px;
    background: var(--gold);
    margin: 25px auto;
}

.hero-tagline {
    font-size: 23px;
    font-style: italic;
    margin: 0 0 30px;
}

.hero-button {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,.7);
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    transition: .25s ease;
}

    .hero-button:hover {
        background: white;
        color: var(--coffee-dark);
    }


/* -----------------------------------------
   NAVIGATION
   ----------------------------------------- */

.main-navigation {
    background: var(--coffee-dark);
    color: white;
    min-height: 72px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-brand {
    font-size: 21px;
    white-space: nowrap;
}

    .nav-brand span {
        margin-right: 8px;
    }

.nav-links {
    display: flex;
    gap: 30px;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-family: Arial, sans-serif;
        font-size: 13px;
        letter-spacing: .5px;
    }

        .nav-links a:hover {
            color: #d6b77a;
        }


/* -----------------------------------------
   INTRO
   ----------------------------------------- */

.intro-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 30px 90px;
    text-align: center;
}

.section-label {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.intro-section h2,
.story-content h2,
.message-card h2 {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: normal;
    line-height: 1.1;
    margin: 0;
}

    .intro-section h2 span,
    .story-content h2 span {
        color: var(--coffee-medium);
        font-style: italic;
    }

.section-divider {
    color: var(--gold);
    font-size: 24px;
    margin: 25px 0;
}

.intro-text {
    max-width: 720px;
    margin: 15px auto;
    font-size: 18px;
    line-height: 1.8;
    color: #5d5147;
}


/* -----------------------------------------
   COFFEE STORY
   ----------------------------------------- */

.coffee-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--green);
    color: white;
}

.story-image {
    min-height: 550px;
}

    .story-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.story-content {
    padding: 80px 9%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .story-content .section-label {
        color: #d5b36d;
    }

    .story-content h2 {
        margin-bottom: 25px;
    }

    .story-content p {
        color: rgba(255,255,255,.82);
        font-size: 17px;
        line-height: 1.8;
        max-width: 540px;
    }

.coffee-details {
    display: flex;
    gap: 45px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.25);
}

    .coffee-details div {
        display: flex;
        flex-direction: column;
    }

    .coffee-details strong {
        font-size: 25px;
        font-weight: normal;
    }

    .coffee-details span {
        font-family: Arial, sans-serif;
        font-size: 11px;
        letter-spacing: 1px;
        margin-top: 5px;
        color: rgba(255,255,255,.65);
    }


/* -----------------------------------------
   MESSAGE
   ----------------------------------------- */

.message-section {
    padding: 100px 25px;
    background: linear-gradient( rgba(245,239,228,.94), rgba(245,239,228,.94) );
}

.message-card {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 60px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(43,27,18,.10);
}

    .message-card h2 {
        margin-bottom: 20px;
    }

    .message-card > p {
        color: #6a5b4e;
        line-height: 1.7;
        font-size: 16px;
    }

.coffee-form {
    margin-top: 35px;
    text-align: left;
}

    .coffee-form label {
        display: block;
        margin-bottom: 9px;
        font-family: Arial, sans-serif;
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

.coffee-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #d8cbb9;
    background: #fcfaf6;
    font-family: Georgia, serif;
    font-size: 16px;
    outline: none;
}

    .coffee-input:focus {
        border-color: var(--coffee-light);
    }

.coffee-button {
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    border: none;
    background: var(--coffee-brown);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .25s ease;
}

    .coffee-button:hover {
        background: var(--coffee-dark);
    }

    .coffee-button span {
        margin-left: 8px;
    }


/* -----------------------------------------
   SUCCESS MESSAGE
   ----------------------------------------- */

.success-message {
    margin-top: 25px;
    padding: 14px;
    background: #edf3e9;
    border-left: 4px solid var(--green);
    color: var(--green);
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: left;
}


/* -----------------------------------------
   FOOTER
   ----------------------------------------- */

.coffee-footer {
    padding: 70px 20px;
    text-align: center;
    background: var(--coffee-dark);
    color: white;
}

.footer-symbol {
    font-size: 32px;
    margin-bottom: 10px;
}

.coffee-footer h3 {
    font-size: 28px;
    font-weight: normal;
    margin: 0;
}

.coffee-footer p {
    color: rgba(255,255,255,.65);
    font-size: 14px;
}

.footer-line {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 25px auto;
}

.coffee-footer small {
    color: rgba(255,255,255,.5);
    font-style: italic;
}


/* -----------------------------------------
   MOBILE
   ----------------------------------------- */

@media (max-width: 750px) {

    .hero-section {
        height: 580px;
    }

    .hero-content h1 {
        font-size: 58px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .main-navigation {
        padding: 18px 25px;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 20px;
    }

    .coffee-story {
        grid-template-columns: 1fr;
    }

    .story-image {
        min-height: 400px;
    }

    .story-content {
        padding: 65px 30px;
    }

    .coffee-details {
        gap: 25px;
    }

    .message-card {
        padding: 40px 25px;
    }

    .intro-section {
        padding: 75px 25px;
    }
}
/* ================================
   CAFÉ CORTAO' AI ASSISTANT
   ================================ */

.ai-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.ai-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #f3e4cf;
}

.ai-header h1 {
    margin: 0;
    font-size: 32px;
}

.ai-header p {
    margin: 5px 0 0;
    opacity: 0.7;
}

.ai-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.ai-welcome h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.ai-welcome p {
    margin-top: 0;
    line-height: 1.6;
    opacity: 0.75;
}

.ai-form {
    margin-top: 28px;
}

    .ai-form textarea {
        width: 100%;
        min-height: 140px;
        resize: vertical;
        padding: 18px;
        border: 1px solid #ddd;
        border-radius: 16px;
        font-size: 16px;
        font-family: inherit;
        box-sizing: border-box;
        outline: none;
    }

        .ai-form textarea:focus {
            border-color: #9b6b43;
            box-shadow: 0 0 0 3px rgba(155, 107, 67, 0.12);
        }

.ai-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

    .ai-form-footer span {
        font-size: 14px;
        opacity: 0.6;
    }

    .ai-form-footer button {
        border: none;
        border-radius: 12px;
        padding: 12px 22px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        background: #6f472c;
        color: white;
    }

        .ai-form-footer button:hover {
            opacity: 0.9;
        }

.ai-answer {
    margin-top: 30px;
    padding: 22px;
    border-radius: 18px;
    background: #faf7f2;
    border: 1px solid #eee4d8;
}

.ai-answer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ai-answer p {
    margin: 0;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ai-home-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #6f472c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

    .ai-home-button:hover {
        text-decoration: underline;
    }

.home-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.facebook-link {
    display: inline-block;
    margin-top: 18px;
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #1877f2;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .facebook-link:hover {
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        opacity: 0.9;
    }
.facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: white;
    color: #1877f2;
    font-weight: 700;
    font-size: 14px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
    background: #faf7f2;
}
.product-info {
    padding: 18px;
    text-align: center;
}

    .product-info h3 {
        margin: 0 0 8px;
        font-size: 22px;
    }

    .product-info p {
        margin: 0 0 12px;
        color: #666;
    }

.product-price {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}
.product-card .coffee-button {
    width: 100%;
    margin-top: 5px;
}
.product-image {
    height: 240px;
    object-fit: contain;
    padding: 15px;
    box-sizing: border-box;
}
/* =========================
   CHECKOUT
   ========================= */

.checkout-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.checkout-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.checkout-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #4a2c1a;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.checkout-field {
    margin-bottom: 20px;
}

    .checkout-field label {
        display: block;
        margin-bottom: 7px;
        font-weight: 600;
        color: #4a2c1a;
    }

    .checkout-field input,
    .checkout-field textarea,
    .checkout-field select {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border: 1px solid #d8d0c8;
        border-radius: 9px;
        font-size: 16px;
        background: #fff;
        color: #333;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .checkout-field input:focus,
        .checkout-field textarea:focus,
        .checkout-field select:focus {
            outline: none;
            border-color: #8b5e3c;
            box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
        }

    .checkout-field textarea {
        resize: vertical;
        min-height: 100px;
    }

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkout-button {
    width: 100%;
    margin-top: 10px;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

@media (max-width: 700px) {

    .checkout-form {
        padding: 22px;
    }

    .checkout-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


.cart-actions {
    width: 100%;
    max-width: 500px;
    margin: 25px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .cart-actions .coffee-button {
        display: block;
        width: 100%;
        margin: 0;
        padding: 16px;
        box-sizing: border-box;
        text-align: center;
        text-decoration: none;
    }
.checkout-product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #faf7f2;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 12px;
}
.checkout-summary {
    max-width: 700px;
    margin: 0 auto 25px;
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.checkout-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #4a2c1a;
    margin-bottom: 20px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.checkout-product-info {
    flex: 1;
}

    .checkout-product-info h3 {
        margin: 0 0 8px;
        font-size: 21px;
    }

    .checkout-product-info p {
        margin: 5px 0;
        color: #666;
    }

.checkout-product-total {
    font-size: 22px;
    font-weight: bold;
    color: #4a2c1a;
}

@media (max-width: 600px) {
    .checkout-product {
        flex-wrap: wrap;
    }

    .checkout-product-total {
        width: 100%;
        text-align: right;
    }
}
/* =========================
   ORDER CONFIRMATION
   ========================= */

.order-confirmation {
    max-width: 700px;
    margin: 30px auto;
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #4a2c1a;
    color: #fff;
    font-size: 34px;
    line-height: 60px;
    font-weight: bold;
}

.confirmation-message {
    color: #666;
    margin-bottom: 25px;
}

.confirmation-details {
    text-align: left;
    background: #faf7f2;
    padding: 25px;
    border-radius: 14px;
}

    .confirmation-details p {
        margin: 10px 0;
    }

.confirmation-product {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin: 20px 0;
    padding: 15px 0;
}

.confirmation-total {
    font-size: 22px;
    color: #4a2c1a;
}

.confirmation-delivery {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.order-confirmation .coffee-button {
    display: block;
    width: 100%;
    margin-top: 25px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 600px) {
    .order-confirmation {
        padding: 22px;
    }

    .confirmation-details {
        padding: 18px;
    }
}