/**
 * main.css — ITP Standar
 * Estilos custom del tema VerdeVida.
 *
 * Paleta de colores:
 *   --verde-oscuro:  #1a3c2e
 *   --verde-medio:   #2d6a4f
 *   --verde-claro:   #40916c
 *   --verde-pastel:  #52b788
 *   --crema:         #f5f3ed
 *   --blanco:        #ffffff
 *   --texto-oscuro:  #1b1b1b
 *   --texto-gris:    #5a5a5a
 *   --gris-claro:    #f0eeea
 *
 * @package itp-standar
 * @version 1.0.0
 */

/* ============================================================
   VARIABLES CSS
   ============================================================ */
:root {
    --verde-oscuro: #1a3c2e;
    --verde-medio:  #2d6a4f;
    --verde-claro:  #40916c;
    --verde-pastel: #52b788;
    --crema:        #f5f3ed;
    --blanco:       #ffffff;
    --texto-oscuro: #1b1b1b;
    --texto-gris:   #5a5a5a;
    --gris-claro:   #f0eeea;
}

/* ============================================================
   RESET BÁSICO
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--texto-oscuro);
    background-color: var(--blanco);
    overflow-x: hidden;
    line-height: 1.6;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

section {
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-custom {
    background: var(--blanco);
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-custom.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--verde-oscuro) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--verde-claro);
}

/* Logo custom en navbar */
.navbar-brand img,
.navbar-brand .custom-logo {
    height: 51px;
    width: auto;
    display: block;
}

.nav-link {
    font-weight: 500;
    color: var(--texto-oscuro) !important;
    margin: 0 0.6rem;
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--verde-claro);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--verde-claro) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 768px;
    background: #1a3c2e;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/fondo1-seccion1.jpg') center / cover no-repeat;
    z-index: 0;
}

.hero-section::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--blanco);
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero-title .line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.btn-hero {
    background: #253924;
    color: #ffffff;
    padding: 0.9rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid #253924;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-hero:hover {
    background: transparent;
    color: #253924;
}

/* ============================================================
   SECTION BASE — HELPERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--verde-claro);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--verde-oscuro);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--texto-gris);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   FEATURES / SERVICIOS SECTION
   ============================================================ */
.features-section {
    padding: 5rem 0;
    background: var(--blanco);
}

.feature-block {
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-block:hover {
    background: var(--crema);
}

.feature-block-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.feature-icon-wrap {
    flex-shrink: 0;
}

.feature-icon-img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    display: block;
}

.feature-text-wrap {
    flex: 1;
}

.feature-title-simple {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--verde-oscuro);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: left;
}

.feature-text-simple {
    color: var(--texto-gris);
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: left;
    margin: 0;
    max-width: none;
}

/* ============================================================
   NUESTRA SELECCION SECTION
   ============================================================ */
.seleccion-section {
    padding: 5rem 0;
    background: var(--blanco);
}

.seleccion-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.seleccion-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--verde-oscuro);
    line-height: 1.15;
    margin-bottom: 1.8rem;
    letter-spacing: -0.5px;
}

.seleccion-title-icon {
    height: 32px;
    width: auto;
    vertical-align: middle;
    margin: 0 0.4rem;
}

.btn-catalogo {
    display: inline-flex;
    align-items: center;
    background: #253924;
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #253924;
}

.btn-catalogo:hover {
    background: transparent;
    color: #253924;
}

.seleccion-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--blanco);
    border: 1px solid var(--gris-claro);
    transition: all 0.3s ease;
}

.seleccion-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.seleccion-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gris-claro);
}

.seleccion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.seleccion-card:hover .seleccion-img {
    transform: scale(1.05);
}

.seleccion-card-body {
    padding: 0.9rem 1rem;
    text-align: center;
}

.seleccion-product-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--verde-oscuro);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.seleccion-product-price {
    font-size: 0.85rem;
    color: var(--verde-claro);
    font-weight: 600;
}

/* ============================================================
   POR QUE ELEGIRNOS SECTION
   ============================================================ */
.elegirnos-section {
    padding: 5rem 0;
    background: var(--blanco);
}

.elegirnos-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.elegirnos-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--verde-oscuro);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.5px;
}

.elegirnos-title-icon {
    height: 32px;
    width: auto;
    vertical-align: middle;
    margin: 0 0.4rem;
}

.elegirnos-items {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.elegirnos-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.elegirnos-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.elegirnos-icon-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.elegirnos-item-text {
    flex: 1;
}

.elegirnos-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #325b25;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.elegirnos-item-desc {
    color: var(--texto-gris);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.elegirnos-foto-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: var(--gris-claro);
    min-height: 420px;
}

.elegirnos-foto {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    padding: 5rem 0;
    background: #e8e7e7;
}

.contact-title-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.contact-title-icon {
    height: 36px;
    width: auto;
}

.contact-form-wrapper {
    background: var(--crema);
    padding: 3rem;
}

.form-label-custom {
    color: var(--texto-oscuro);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control-custom {
    background: var(--blanco);
    border: 1px solid var(--gris-claro);
    border-radius: 0;
    padding: 1rem 1.25rem;
    color: var(--texto-oscuro);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control-custom:focus {
    border-color: var(--verde-claro);
    box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.1);
    outline: none;
}

.btn-submit {
    background: var(--verde-oscuro);
    color: var(--blanco);
    border: 2px solid var(--verde-oscuro);
    padding: 1rem 2.5rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 0;
}

.btn-submit:hover {
    background: transparent;
    color: var(--verde-oscuro);
}

.contact-info-row {
    margin-top: 0;
}

.contact-info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    margin-bottom: 0;
}

.contact-icon-wrap {
    flex-shrink: 0;
}

.contact-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.contact-item-text {
    flex: 1;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--texto-gris);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info-text {
    font-size: 1.1rem;
    color: var(--verde-oscuro);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.contact-info-text:hover {
    color: var(--verde-claro);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #253924;
    color: var(--blanco);
    padding: 4rem 0 2rem;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 48px;
    width: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--blanco);
    padding-left: 5px;
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.footer-vr {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 1rem;
}

.footer-social-plain {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: var(--blanco);
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(10);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container-custom {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}

/* ============================================================
   HERO ENTRY ANIMATIONS
   ============================================================ */
.hero-title,
.hero-subtitle,
.btn-hero {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.loaded .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

body.loaded .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

body.loaded .btn-hero {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Respetar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .btn-hero {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--crema);
}

::-webkit-scrollbar-thumb {
    background: var(--verde-claro);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--verde-oscuro);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.divider {
    width: 60px;
    height: 2px;
    background: var(--verde-claro);
    margin: 1.5rem auto;
}

.divider-left {
    margin: 1.5rem 0;
}

/* ============================================================
   RESPONSIVE — Tablet (max 991px)
   ============================================================ */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 4rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .seleccion-intro {
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }

    .elegirnos-header {
        justify-content: center;
    }

    .elegirnos-foto-wrap {
        min-height: 300px;
    }

    .elegirnos-foto {
        min-height: 300px;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (max 767px)
   ============================================================ */
@media (max-width: 767px) {
    .feature-block {
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--gris-claro);
    }

    .feature-block:last-child {
        border-bottom: none;
    }

    .feature-block-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-title-simple,
    .feature-text-simple {
        text-align: center;
    }

    .elegirnos-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .elegirnos-item-title,
    .elegirnos-item-desc {
        text-align: center;
    }

    .contact-info-row .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .seleccion-intro {
        align-items: center;
        text-align: center;
    }

    .seleccion-title {
        text-align: center;
    }

    .footer-brand,
    .footer-text {
        text-align: center;
    }

    .footer-title {
        text-align: center;
        margin-top: 2rem;
    }

    .footer-links {
        text-align: center;
    }

    .footer-social-plain {
        align-items: center;
    }
}

/* ============================================================
   RESPONSIVE — Mobile pequeño (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero-section {
        min-height: auto;
        padding: 5rem 0 3rem;
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .seleccion-section .row.g-4 {
        --bs-gutter-x: 1rem;
    }

    .seleccion-card-body {
        padding: 0.6rem 0.75rem;
    }

    .seleccion-product-name {
        font-size: 0.85rem;
    }

    .seleccion-product-price {
        font-size: 0.78rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
}
