/* ============================================
   UNITED PERU MULTISERVICES — STYLESHEET
   Warm · Friendly · Peruvian-Inspired
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-900: #0D2818;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --green-400: #74C69D;
    --green-300: #95D5B2;
    --green-200: #B7E4C7;
    --green-100: #D8F3DC;
    
    --cream-50: #FDFBF7;
    --cream-100: #F9F5EF;
    --cream-200: #F5F0EB;
    --cream-300: #EDE5DA;
    --cream-400: #E0D5C5;
    
    --warm-500: #D4A574;
    --warm-400: #E0B88E;
    --warm-300: #E8C9A8;
    
    --text-dark: #1A1A1A;
    --text-mid: #3D3D3D;
    --text-light: #6B6B6B;
    --text-muted: #999999;
    
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
    --shadow-md: 0 4px 20px rgba(27, 67, 50, 0.10);
    --shadow-lg: 0 8px 40px rgba(27, 67, 50, 0.14);
    --shadow-xl: 0 16px 60px rgba(27, 67, 50, 0.18);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--green-800);
    font-weight: 400;
}

.logo-icon {
    color: var(--green-700);
}

.logo-text {
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-mid);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--green-700);
    background: var(--green-100);
}

.nav-cta {
    background: var(--green-800);
    color: var(--white) !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--green-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--green-800);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-800);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-link:hover {
    background: var(--green-100);
}

.mobile-cta {
    background: var(--green-800);
    color: var(--white) !important;
    margin-top: 12px;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--cream-50);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(82, 183, 136, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(45, 106, 79, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-100);
    color: var(--green-700);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 1.08;
    color: var(--green-800);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--warm-500);
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--green-800);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.3);
}

.btn-primary:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(27, 67, 50, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--green-800);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--cream-100);
}

.btn-white {
    background: var(--white);
    color: var(--green-800);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-main-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-main-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.hero-image-accent {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.float-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.float-card-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--green-800);
    line-height: 1.2;
}

.float-card-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.float-card-info {
    display: flex;
    flex-direction: column;
}

.float-card-1 {
    top: 60px;
    left: -40px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 140px;
    right: -30px;
    animation-delay: 1.3s;
}

.float-card-3 {
    bottom: 40px;
    left: -20px;
    animation-delay: 2.6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ---------- SECTION COMMON ---------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--green-800);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background: var(--cream-200);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--cream-200);
}

.about-img-secondary img {
    width: 320px;
    height: 280px;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--green-200);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.6;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1.05rem;
    color: var(--green-800);
    margin-bottom: 4px;
    font-weight: 700;
}

.about-feature p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ---------- PRODUCTS ---------- */
.products {
    padding: 100px 0;
    background: var(--cream-50);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--green-800);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-info {
    padding: 28px;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--green-800);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- VISIT ---------- */
.visit {
    padding: 100px 0;
    background: var(--cream-200);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.visit-text {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 40px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.contact-card:last-child {
    cursor: default;
}

.contact-card:last-child:hover {
    transform: none;
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-content h4 {
    font-size: 1rem;
    color: var(--green-800);
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-card-arrow {
    margin-left: auto;
    color: var(--green-400);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-card:hover .contact-card-arrow {
    color: var(--green-600);
    transform: translateX(4px);
}

.visit-map {
    position: relative;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
    width: 100%;
    height: 500px;
    display: block;
}

/* ---------- CTA ---------- */
.cta {
    padding: 100px 0;
    background: var(--green-800);
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 30% 50%, rgba(82, 183, 136, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(212, 165, 116, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.cta-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.logo-light {
    color: var(--white);
    margin-bottom: 18px;
    display: inline-flex;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-300);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-main-image img {
        height: 480px;
    }
    
    .float-card-1 {
        left: -10px;
    }
    
    .float-card-2 {
        right: -10px;
    }
    
    .about-grid {
        gap: 50px;
    }
    
    .about-img-secondary {
        right: -15px;
        bottom: -25px;
    }
    
    .about-img-secondary img {
        width: 240px;
        height: 210px;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subheadline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero-main-image img {
        height: 420px;
    }
    
    .float-card-1 {
        top: 20px;
        left: 0;
    }
    
    .float-card-2 {
        right: 0;
        bottom: 100px;
    }
    
    .float-card-3 {
        left: 0;
        bottom: 10px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper iframe {
        height: 360px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-headline {
        font-size: 2.6rem;
    }
    
    .float-card {
        padding: 12px 16px;
    }
    
    .float-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    
    .float-card-number {
        font-size: 1rem;
    }
    
    .float-card-label {
        font-size: 0.72rem;
    }
    
    .float-card-1 {
        top: 10px;
        left: -5px;
    }
    
    .float-card-2 {
        right: -5px;
        bottom: 80px;
    }
    
    .float-card-3 {
        bottom: 5px;
        left: -5px;
    }
    
    .about {
        padding: 70px 0;
    }
    
    .about-img-main img {
        height: 360px;
    }
    
    .about-img-secondary {
        right: -10px;
        bottom: -20px;
    }
    
    .about-img-secondary img {
        width: 180px;
        height: 160px;
    }
    
    .products {
        padding: 70px 0;
    }
    
    .visit {
        padding: 70px 0;
    }
    
    .cta {
        padding: 70px 0;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-headline {
        font-size: 2.1rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
    
    .float-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 12px;
    }
    
    .hero-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-main-image img {
        height: 320px;
    }
    
    .about-img-main img {
        height: 280px;
    }
    
    .about-img-secondary {
        display: none;
    }
    
    .about-img-accent {
        display: none;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-info {
        padding: 22px;
    }
    
    .contact-card {
        padding: 18px;
    }
    
    .contact-card-content p {
        font-size: 0.82rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}
