/* Custom CSS for IGUA Landing Page */

/* Colores */
:root {
    --color-dark: #1a1915;
    --color-white: #FFFFFF;
    --color-light-blue: #ebe7db;
    --color-dark-blue-gray: #4a5568;
    --color-light: #f5f5f5;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--color-dark);
}

.text-dark {
    color: var(--color-dark) !important;
}

.text-muted {
    color: var(--color-dark-blue-gray) !important;
}

.bg-dark {
    background-color: var(--color-dark) !important;
}

.bg-white {
    background-color: var(--color-white) !important;
}

.bg-light-blue {
    background-color: var(--color-light-blue) !important;
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease-in-out;
    background-color: var(--color-dark);
    height: 76px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    padding: 0;
}

.navbar > .container {
    height: 100%;
    max-width: 1320px; /* O el ancho máximo que prefieras */
    padding: 0 1.5rem; /* Espaciado lateral */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-link {
    color: var(--color-light);
    font-weight: 400;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--color-light-blue);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    font-weight: 500;
}

.navbar-collapse {
    flex-basis: 100%;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 991.98px) {
    .navbar > .container {
        padding: 0 1rem;
    }
    
    .navbar-toggler {
        margin-right: 0.5rem;
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 76px; /* Altura del navbar */
        left: 0;
        right: 0;
        background-color: var(--color-dark);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: calc(100vh - 76px);
        overflow-y: hidden;
    }
    
    .navbar-nav {
        padding: 0 1.5rem;
    }
    
    .navbar .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar .nav-link:last-child {
        border-bottom: none;
    }
    
    html, body {
        overflow-x: hidden;
    }
    
    .hero-section {
        padding-top: 76px;
        height: auto;
    }
    
    .hero-section .container {
        padding: 0 15px;
        margin: 0 auto;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('../img/background-igua.webp') no-repeat center center/cover;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    padding-top: 76px;
    margin: 0;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.hero-section h1 {
    color: var(--color-white) !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    color: var(--color-white);
}

.hero-section .btn {
    color: var(--color-white) !important;
    padding: 1rem 2.5rem;
    font-weight: 500;
}

/* Botones */
.btn-outline-light {
    border-color: var(--color-white);
    color: var(--color-white);
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0.75rem 2rem;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--color-dark);
    border-color: var(--color-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
    transition: all 0.3s ease;
    border: none;
    padding: 0.75rem 2rem;
}

.btn-dark:hover {
    background-color: #1a1915;
    color: var(--color-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
    color: var(--color-dark);
    border-color: var(--color-dark);
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0.75rem 2rem;
}

.btn-outline-dark:hover {
    background-color: #1a1915;
    color: var(--color-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Product Cards */
.product-card {
    transition: transform 0.5s ease;
    height: 100%;
}

.product-card-img {
    height: auto;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 0.5s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Responsive adjustments for agenda images */
@media (max-width: 768px) {
    .product-card-img {
        aspect-ratio: 3/4;
    }
}

@media (max-width: 576px) {
    .product-card-img {
        aspect-ratio: 1/1;
    }
}

/* Social Icons in Footer */
.social-icons a {
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-light-blue) !important;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .btn-lg {
        font-size: 1rem;
        padding: 0.8rem 2.5rem;
    }
}