/* Variables de colores */
:root {
    --color-primary: #3E2723;
    --color-secondary: #795548;
    --color-accent: #8D6E63;
    --color-light: #D7CCC8;
    --color-text: #212121;
    --color-background: #FAFAFA;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Myriad Pro', sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Berlin Sans FB Demi', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Myriad Pro', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.logo {
    font-family: 'Berlin Sans FB Demi', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Berlin Sans FB Demi', sans-serif; /* Cambiado a Berlin Sans FB Demi */
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #A58054;
}

.nav-links a.active {
    color: #A58054;
    font-weight: 700;
}

.nav-links a.active:after {
    display: none;
}

.nav-links a:hover:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Responsive Navegación */
@media screen and (max-width: 900px) {
    .logo {
        font-size: 1.4rem;
    }
    nav {
        padding: 1rem 0;
    }
    .nav-links li {
        margin-left: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: row;
        padding: 0.7rem 0;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        background: rgba(0,0,0,0.98);
        height: 100vh;
        width: 220px;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links li {
        margin: 1.2rem 0;
        margin-left: 0;
    }
    .nav-links a {
        font-size: 2rem;
        padding: 0.8rem 0;
    }
    .hamburger {
        display: block;
        z-index: 1100;
    }
}

/* Hamburger animation */
.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
    opacity: 0;
}
.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/fondo1.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
    font-family: 'Myriad Pro', sans-serif;
}

/* Secciones generales */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem; /* Aumenta el tamaño de la fuente */
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Sobre Nosotros */
.about {
    background: url('../images/Sin título-2-02.png') no-repeat center center/cover;
    color: var(--color-text);
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 3rem 0;
    position: relative;
    left: 0;
}

.about-main {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 15px;
}

.about-main-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.7;
    text-align: center;
    font-family: 'Myriad Pro', sans-serif;
}

.about-subsections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0;
}

.subsection {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.subsection-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.subsection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subsection-content {
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
}

.subsection-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.subsection-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.subsection-text {
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--color-text);
    font-family: 'Myriad Pro', sans-serif;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .about {
        padding: 2rem 0;
    }

    .about-main-text {
        font-size: 1.1rem;
    }

    .about-subsections {
        padding: 0 10px;
    }

    .subsection-image {
        max-width: 300px;
        height: 180px;
    }

    .subsection-content h3 {
        font-size: 1.8rem;
    }

    .subsection-content h4 {
        font-size: 1.3rem;
    }

    .subsection-text {
        font-size: 1rem;
    }
}

/* Portafolio de Café */
.portfolio {
    background: url('../images/Sin título-1-07.png') no-repeat center center/cover;
    color: white;
    width: 100vw;
    margin: 0;
    padding: 3rem 0;
    position: relative;
    left: 0;
}

.portfolio .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
    padding: 0 15px;
}

.portfolio-items {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 0;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.portfolio-item .btn {
    margin-top: 0.5rem;
    background-color: #931916;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-family: 'Myriad Pro', sans-serif;
}

.portfolio-item .btn:hover {
    background-color: #7b0c0c;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .portfolio {
        padding: 2rem 0;
    }

    .portfolio .section-title {
        font-size: 2rem;
    }

    .portfolio-items {
        padding: 0 10px;
    }

    .portfolio-image {
        max-width: 300px;
        height: 180px;
    }

    .portfolio-item h3 {
        font-size: 1.8rem;
    }
}

/* Servicios */
.services {
    background-color: #931916;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.services .section-title {
    color: white;
    font-weight: 700;
    font-size: 2.8rem;
    text-align: center;
}

.services .section-title:after {
    display: none;
}

.services p {
    color: white;
    font-weight: 200;
    font-size: 1.5rem;
    line-height: 1.7;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Myriad Pro', sans-serif;
}

/* Responsive Servicios */
@media screen and (max-width: 768px) {
    .services .section-title {
        font-size: 2rem;
    }
    .services p {
        font-size: 1.2rem;
    }
}

/* Sección compromiso y exportación */
.commitment-export {
    margin: 0;
    padding: 0;
}

.commitment-export-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.commitment-section, 
.export-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.commitment-image img,
.export-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.commitment-content,
.export-content {
    padding: 4rem;
    line-height: 1.7;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(250, 250, 250, 0.8);
}

.commitment-content h2,
.export-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #7b0c0c;
}

.commitment-content p,
.export-content p {
    font-size: 1.2rem;
    font-weight: 300;
    text-align: justify;
    font-family: 'Myriad Pro', sans-serif;
}

.export-section {
    grid-template-columns: 1fr 1fr;
}

.export-image {
    order: -1;
}

/* Portafolio de Café */
.portfolio {
    background: url('../images/Sin título-1-07.png') no-repeat center center/cover;
    color: white;
    width: 100vw;
    margin: 0;
    padding: 3rem 0;
    position: relative;
    left: 0;
}

.portfolio .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
}

.portfolio-items {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 0;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.portfolio-item .btn {
    margin-top: 0.5rem;
    background-color: #931916;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-family: 'Myriad Pro', sans-serif;
}

.portfolio-item .btn:hover {
    background-color: #7b0c0c;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .commitment-section,
    .export-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .commitment-image img,
    .export-image img {
        height: 300px;
    }

    .commitment-content,
    .export-content {
        padding: 2rem;
        max-width: 100%;
        text-align: center;
    }

    .export-image {
        order: unset;
    }

    .portfolio {
        padding: 2rem 0;
    }

    .portfolio .section-title {
        font-size: 2rem;
    }

    .portfolio-items {
        padding: 0 10px;
    }

    .portfolio-image {
        max-width: 300px;
        height: 180px;
    }

    .portfolio-item h3 {
        font-size: 1.8rem;
    }
}


/* Sección Productos */
.productos-section {
    position: relative;
    background: #ffffff;
    padding: 4rem 0;
    text-align: center;
    border-radius: 30px 30px 0 0;
    width: 100%;
    margin: 0;
}

.productos-section .section-title {
    font-size: 3rem;
    color: #7b1d1d;
    margin-bottom: 3rem;
    font-weight: 700;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.producto {
    background: #7b1d1d;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* asegura que todos los productos tengan misma altura */
}

.producto h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    min-height: 50px; /* 🔹 asegura que todos los títulos ocupen espacio similar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.producto img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.producto:nth-child(1) img {
    max-width: 300px;
}

.producto:nth-child(2) img {
    max-width: 190px;
}

.producto:nth-child(3) img {
    max-width: 170px;
}

.producto:nth-child(4) img {
    max-width: 130px;
}

/* Botón */
.producto .btn {
  margin-top: auto;
  background: #ffffff;
  color: #7b1d1d;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-family: 'Myriad Pro', sans-serif;
}

.producto .btn:hover {
  background: #7b1d1d;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Decoración de esquinas */
.decoracion {
    position: absolute;
    width: 250px;
    top: -50px;
    z-index: 2;
}

.decoracion-izq {
    left: 0;
}

.decoracion-der {
    right: 0;
}

/* Media Queries para responsividad */
@media screen and (max-width: 768px) {
    .productos-section {
        padding: 2rem 0;
    }

    .productos-section .section-title {
        font-size: 2rem;
    }

    .productos-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .producto {
        padding: 1rem;
    }

    .producto h3 {
        font-size: 1rem;
    }

    .producto:nth-child(1) img {
        max-width: 200px;
    }

    .producto:nth-child(2) img {
        max-width: 140px;
    }

    .producto:nth-child(3) img {
        max-width: 150px;
    }

    .producto:nth-child(4) img {
        max-width: 125px;
    }

    .decoracion {
        width: 100px;
        top: -30px;
    }
}

@media screen and (max-width: 480px) {
    .productos-section .section-title {
        font-size: 1.8rem;
    }

    .producto h3 {
        font-size: 0.9rem;
    }

    .producto:nth-child(1) img {
        max-width: 150px;
    }

    .producto:nth-child(2) img {
        max-width: 100px;
    }

    .producto:nth-child(3) img {
        max-width: 110px;
    }

    .producto:nth-child(4) img {
        max-width: 90px;
    }

    .decoracion {
        width: 80px;
        top: -20px;
    }
}

/* Sección Historia */
.historia-section {
    margin: 0;
    padding: 0;
    width: 100%;
}

.historia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.historia-text {
    padding: 4rem;
    line-height: 1.7;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(250, 250, 250, 0.8);
}

.historia-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #7b0c0c;
}

.historia-text p {
    font-size: 1.2rem;
    font-weight: 300;
    text-align: justify;
    color: #333;
    font-family: 'Myriad Pro', sans-serif;
}

.historia-text .bioay-highlight {
    font-weight: 900; /* Más grueso para BIOAY */
    color: #000; /* Negro puro para BIOAY */
}

/* Media Queries para responsividad */
@media screen and (max-width: 768px) {
    .historia-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .historia-image img {
        height: 300px;
    }

    .historia-text {
        padding: 2rem;
        max-width: 100%;
        text-align: center;
    }

    .historia-text h2 {
        font-size: 1.8rem;
    }

    .historia-text p {
        font-size: 1rem;
    }
}

/* Sección Contacto */
.contacto-section {
    background: #000;
    padding: 4rem 2rem;
    text-align: center;
}

.contacto-section h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #c89b63;
    margin-bottom: 0.5rem;
}

.contacto-section p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-family: 'Myriad Pro', sans-serif;
}

.contacto-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row input,
textarea {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #c89b63;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-family: 'Myriad Pro', sans-serif;
}

textarea {
    width: 100%;
    resize: none;
}

.form-row.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    color: #cfcfcf;
    text-align: left;
    font-family: 'Myriad Pro', sans-serif;
}

.form-row.checkboxes a {
    color: #c89b63;
    text-decoration: underline;
}

.contacto-form button {
    margin-top: 2rem;
    background: #c89b63;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    font-family: 'Myriad Pro', sans-serif;
}

.contacto-form button:hover {
    background: #a37445;
}

/* Responsive Contacto */
@media screen and (max-width: 768px) {
    .contacto-section {
        padding: 2rem 1rem;
    }
    .contacto-section h2 {
        font-size: 1.5rem;
    }
    .contacto-section p {
        font-size: 1rem;
    }
    .contacto-form {
        max-width: 100%;
    }
    .form-row {
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 1rem;
    }
    .form-row input,
    textarea {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
    .contacto-form button {
        width: 100%;
        padding: 0.7rem 0;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .contacto-section {
        padding: 1rem 0.5rem;
    }
    .contacto-section h2 {
        font-size: 1.2rem;
    }
    .contacto-section p {
        font-size: 0.95rem;
    }
    .contacto-form button {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }
}



/* Footer */
.footer {
    position: relative;
    background: #fbeed9;
    padding: 3rem 2rem;
    overflow: hidden;
}

.footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/Sin\ título-2-03.png") no-repeat left bottom;
    background-size: contain;
    opacity: 1;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: start;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: start;
    padding-left: 2rem; /* Desplazar contenido hacia la izquierda */
}

.footer-logo {
    position: relative;
    z-index: 10;
}

.footer-logo img {
    width: 300px;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    left: 0;
    top: -20px;
}

.footer-info h4 {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
}


.footer-info a {
    font-size: 0.95rem;
    color: #9b1c1c;
    margin-bottom: 0.3rem;
    text-decoration: none;
    font-family: 'Myriad Pro', sans-serif;
} 


.footer-info p {
    font-size: 0.95rem;
    color: #282525;
    margin-bottom: 0.3rem;
    text-decoration: none;
    font-family: 'Myriad Pro', sans-serif;
} 


.footer-info strong {
    color: #9b1c1c;
    font-size: 1.1rem;
    font-family: 'Myriad Pro', sans-serif;
}

/* Responsive Footer */
@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding-left: 1.5rem; /* Menos desplazamiento en pantallas medianas */
    }
    .footer-logo img {
        width: 200px;
        top: -15px;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 2rem 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        justify-items: center; /* Centrar en móviles para mejor apariencia */
        padding-left: 0; /* Quitar desplazamiento en móviles */
    }
    .footer-logo img {
        margin-left: auto;
        margin-right: auto;
        width: 150px;
        top: -10px;
    }
    .footer-info h4 {
        font-size: 1rem;
    }
    .footer-info p,
    .footer-info a {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 1.2rem 0.5rem;
    }
    .footer-logo img {
        width: 100px;
        top: -5px;
    }
    .footer-info h4 {
        font-size: 0.95rem;
    }
    .footer-info p,
    .footer-info a {
        font-size: 0.9rem;
    }
}