/* Global Styles */
:root {
    --primary-color: #d35400;
    /* Deep Amber */
    --secondary-color: #2c3e50;
    /* Dark Slate Blue/Grey */
    --accent-color: #e67e22;
    /* Lighter Amber */
    --background-light: #f4f4f4;
    --text-color: #333;
    --text-light: #ecf0f1;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

/* Header & Nav */
header {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    border-radius: 2px;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/El-Plomo.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Fallback if user doesn't have El-Plomo.jpg or if it fails to load, background color is dark */
#hero {
    background-color: #222;
}

/* Re-apply background image properly if it exists */
/* Assuming the image exists as listed in file list */
#hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('images/El-Plomo.jpg') no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

/* Varieties Section */
.beer-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .beer-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.beer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.beer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.beer-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-bottom: 1px solid #eee;
}

.beer-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.beer-info h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.beer-info .description {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.beer-info .details {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-weight: bold;
    color: var(--primary-color);
}

/* Places of Sale Section */
.highlight-section {
    background-color: #fff;
    border-radius: 20px;
    margin: 40px auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.place-card {
    background: #f9f9f9;
    padding: 0 0 30px 0;
    border-radius: 12px;
    border-left: none;
    border-bottom: 5px solid var(--primary-color);
    transition: background-color 0.3s;
    overflow: hidden;
}

.place-card .place-img {
    width: 100%;
    height: auto;
    display: block;
}

.place-card h3 {
    margin-top: 20px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    padding: 0 30px;
}

.place-desc,
.place-details,
.place-links {
    padding: 0 30px;
}

.place-card:hover {
    background-color: #f1f1f1;
}

.place-desc {
    color: #555;
    margin-bottom: 20px;
}

.place-details p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.place-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.place-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.place-btn:hover {
    background-color: #34495e;
}

.instagram-link {
    display: inline-block;
    color: #E1306C;
    font-weight: bold;
}

/* Cervecero Section */
.cervecero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .cervecero-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.cervecero-img {
    flex: 0 0 250px;
}

.cervecero-img img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

.cervecero-text {
    flex: 1;
}

.cervecero-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
}

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: bold;
    transition: all 0.3s;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.contact-btn.instagram {
    border-color: #E1306C;
    color: #E1306C;
}

.contact-btn.instagram:hover {
    background-color: #E1306C;
    color: white;
}

.contact-btn.whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.contact-btn.whatsapp:hover {
    background-color: #25D366;
    color: white;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #bdc3c7;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

/* Responsive & Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--secondary-color);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Accordion Styles */
.animal-accordion {
    margin: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.accordion-btn {
    background: none;
    border: none;
    width: 100%;
    padding: 10px 0;
    text-align: left;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.accordion-btn:hover {
    color: var(--accent-color);
}

.accordion-btn i {
    transition: transform 0.3s;
}

.accordion-btn.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 5px;
}

.accordion-content.active {
    max-height: 200px;
    /* Adjust if content is longer */
    transition: max-height 0.4s ease-in;
}

.accordion-content p {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0;
    line-height: 1.5;
}