:root {
    --primary-color: #0077b6;
    --primary-dark: #005f8a;
    --secondary-color: #00b4d8;
    --accent-color: #90e0ef;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

* {
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: 0 4px 20px rgba(0,90,140,0.3);
    padding: 0;
    min-height: auto;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    position: relative;
    padding-top: 25px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    min-height: 90px;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,90,140,0.4);
}

.navbar-brand {
    font-size: 1.1rem;
    position: absolute;
    left: 0px;
    top: 80%;
    transform: translateY(-50%);
    z-index: 10;
}

.navbar-brand-text {
    position: relative;
    left: 170px;
    top: 20px;
    transform: translateY(-100%);
    z-index: 10;
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    display: flex;
    align-content: center;
    align-items: center;
}

.navbar-brand img {
    height: 120px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar.scrolled .navbar-brand img {
    height: 120px;
}

.navbar-toggler {
    margin-left: auto;
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

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

.navbar-collapse {
    margin-left: 180px;
}

.navbar-nav {
    gap: 5px;
}

.navbar-nav {
    gap: 5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 5px;
    margin: 0 2px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(255,255,255,0.1);
}

.navbar-nav .nav-link:hover::before {
    width: 70%;
}

.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.15);
}

.navbar-nav .nav-link.active::before {
    width: 70%;
}

.btn-success {
    background-color: #25D366;
    border-color: #25D366;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
    font-weight: 600;
}

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.btn-success:active {
    transform: translateY(0);
}

.hero-section .btn-outline-primary:hover {
    background-color: white;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: url('../img/copofrigorificoslayerp.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-section {
        background: url('../img/copofrigorificoslayerp2.png') top/cover no-repeat;
        background-size: cover;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section .display-3 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-card {
    animation: float 3s ease-in-out infinite;
}

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

.min-vh-75 {
    min-height: 75vh;
}

/* Productos */
#productos {
    padding: 80px 0;
    background: linear-gradient(180deg, #d4e5f0, #c5d9e8);
}

#productos .display-5 {
    margin-bottom: 15px;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.product-card .card-img-top {
    height: 250px;
    width: 100%;
    object-fit: contain;
    background: #f8f8f8;
    padding: 20px;
}

.product-card .card-body {
    padding: 25px;
}

.product-card .card-title {
    color: #1a5a7a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-card .card-text {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-card .card-footer {
    background: #fafafa;
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.product-card .btn-primary {
    background: #0077b6;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
}

.product-card .btn-primary:hover {
    background: #005f8a;
}

.product-card .bi-check-circle {
    color: #0077b6 !important;
}

.product-card ul {
    padding-left: 5px;
}

.product-card ul li {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Clientes */
#clientes {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0f4f8, #e2e8f0);
}

#clientes .display-5 {
    margin-bottom: 15px;
}

/* Contacto */
#contacto {
    padding: 80px 0;
    background: linear-gradient(180deg, #d4e5f0, #c5d9e8);
}

#contacto .display-5 {
    margin-bottom: 15px;
}

.cliente-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cliente-img {
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-section .display-3 {
        font-size: 2rem;
    }

    .hero-card {
        margin-top: 30px;
    }

    #productos, #clientes, #contacto {
        padding: 60px 0;
    }
}

@media (max-width: 991px) {
    .navbar {
        position: relative;
    }

    .navbar-brand {
        position: fixed;
        top: 50px;
        left: 15px;
        z-index: 1000;
    }

    .navbar-brand img {
        height: 80px;
    }

    .navbar-brand-text {
        display: block;
        left: 85px;
        z-index: 1000;
        font-size: 1.1rem;
    }

    .navbar-toggler {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1000;
    }

    .navbar-collapse {
        margin-left: 0;
        margin-top: 0;
        background: rgba(0,0,0,0.15);
        padding: 15px;
        border-radius: 10px;
        margin-top: 80px;
    }

    .navbar .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 767px) {
    .navbar .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-brand-text {
        display: block;
        left: 130px;
        z-index: 1000;
        font-size: 0.9rem;
    }

    .navbar.scrolled .navbar-brand img {
        height: 55px;
    }

    .hero-section .display-3 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .product-card .card-img-top {
        height: 180px;
        padding: 15px;
    }

    .product-card .card-body {
        padding: 20px;
    }

    .product-card .card-title {
        font-size: 1rem;
    }

    .product-card .card-text {
        font-size: 0.8rem;
    }

    .cliente-img {
        height: 200px;
        object-fit: cover;
    }

    #productos .display-5,
    #clientes .display-5,
    #contacto .display-5 {
        font-size: 1.75rem;
    }

    footer .row {
        text-align: center;
    }

    footer .col-md-4 {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 90px 0 50px;
    }

    .hero-section .display-3 {
        font-size: 1.5rem;
    }

    .product-card .card-img-top {
        height: 150px;
        padding: 10px;
    }

    .cliente-img {
        height: 180px;
        object-fit: cover;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
