:root {
    --color-primary: #79B473; 
    --color-accent: #f7ca45;
    --color-text: #333;
    --color-light: #f4f4f4;
    --color-white: #fff;
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    margin: 0;
    color: var(--color-text);
    background-color: #f9f9f9;
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.2;
}

p {
    margin-top: 0;
}

a {
    color: var(--color-primary);
}

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

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

.site-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 20px;
    text-align: center;
}

body:not(.home-page) .site-header {
    padding: 1rem 0;
    text-align: left;
}

body:not(.home-page) .site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.home-page .header-title {
    margin-bottom: 0;
}

.header-title > div {
    text-align: left;
}

.logo {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.header-title h1 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.header-title h2 {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: normal;
    opacity: 0.9;
}

.info-bar {
    background: #ffeb3b;
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    color: var(--color-text);
}

.main-nav {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 10px 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.main-nav a:hover, .main-nav a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

main.container section + section {
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.history {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card__title {
    padding: 1rem;
    font-weight: bold;
    text-align: center;
}

.branch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
}

.branch-photo {
    flex: 1 1 300px;
    border-radius: 10px;
}

.branch-info {
    flex: 1 1 300px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text);
}

.btn-primary:hover {
    background-color: #e5b33b;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-text);
}

.btn--white-ghost {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: #e5b33b;
}

.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 2rem 1rem;
}

.socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.socials__icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.socials__icon:hover {
    transform: scale(1.1);
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 15px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.copyright hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.control-sonido {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.control-sonido svg {
    width: 24px;
    height: 24px;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.4s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.9em;
    color: var(--color-text);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 25px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #c0392b;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp {
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:30px;
    z-index:100;
    transition: all 0.3s;
}
.whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}
.whatsapp img {
    padding: 14px;
    height: 32px;
    width: 32px;
}

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