/* Frutas Los Gomelos - Core Styles */
:root {
    --primary: #1b4d3e;
    /* Deep Forest Green */
    --primary-light: #2d6a4f;
    --secondary: #f48c06;
    /* Vibrant Orange */
    --accent: #d00000;
    /* Fresh Red */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #4a4a4a;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 12px;

    /* Compatibility Variables */
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --text-color: var(--text-dark);
    --bg-color: var(--bg-light);
    --white: var(--bg-white);
    --shadow: var(--shadow-md);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 60px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: #e07a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-link {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    /* background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1488459711635-de8296fe939b?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat; */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('fotos_originales/Lonja_Cehegin/Fotonueva.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-image-grid img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Products Section */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.product-img {
    height: 240px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services */
.services {
    background: #ecf3f0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 60px 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Contact Section */
.contact-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    width: 30px;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a,
.contact-item span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Footer */
footer {
    background: #0d261f;
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

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

.footer-brand img {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    margin: 0 auto 20px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos].appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-padding {
        padding: 60px 0;
    }

    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 40px 30px;
    }
}

/* --- Added Styles from Inline CSS --- */

/* Header Phone */
.header-phone {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.header-phone a {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 900px) {
    .header-phone {
        display: none;
    }
}

/* Hero Phone specifically */
.hero-phone {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 30px 0;
    transition: var(--transition);
}

.hero-phone:hover {
    transform: scale(1.05);
    color: #ff9f43;
}

/* Delivery Grid & Features */
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.delivery-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 30px;
}

.delivery-card:nth-child(even) .delivery-img {
    order: 2;
}

.delivery-card:nth-child(even) .delivery-info {
    order: 1;
}

.delivery-img {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    height: 100%;
    min-height: 300px;
}

.delivery-img img {
    height: 100%;
    object-fit: cover;
}

.delivery-features {
    list-style: none;
    margin-top: 20px;
}

.delivery-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-dark);
}

.delivery-features i {
    color: var(--secondary);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .delivery-card {
        grid-template-columns: 1fr;
    }

    .delivery-card:nth-child(even) .delivery-img {
        order: unset;
    }

    .delivery-card:nth-child(even) .delivery-info {
        order: unset;
    }
}

/* Floating Call Button */
.floating-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--bg-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .floating-call {
        display: flex;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 90, 39, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(45, 90, 39, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(45, 90, 39, 0);
    }
}