﻿/* ===========================
   VARIABLES Y RESET
   =========================== */

:root {
    --primary-color: #8b7355;
    --primary-dark: #6b5545;
    --secondary-color: #d4af37;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #f9f7f4;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

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

.section-title {
    font-family: 'The Seasons', serif;
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===========================
   WHATSAPP FLOAT BUTTON
   =========================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 999;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 1.5rem 0;
}

.header.scrolled {
    background: #f9f9f4;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
}

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    order: 1;
}

.logo img {
    height: 61px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    order: 2;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    font-weight: 400;
    color: white !important;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
}

.header.scrolled .nav-menu a {
    color: var(--text-dark) !important;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

/* Submenu Styles */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    margin-top: 1rem;
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    position: relative;
}

.submenu a {
    padding: 0.75rem 2.5rem 0.75rem 1.5rem;
    color: var(--text-dark) !important;
    font-size: 0.8rem;
    transition: background 0.3s ease, padding-left 0.3s ease;
}

.submenu a:hover {
    background: var(--bg-light);
    padding-left: 2rem;
}

/* Sub-submenu (nested) */
.submenu .submenu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0;
}

.submenu .has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Indicador de submenu */
.has-submenu > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
}

.has-submenu.no-indicator > a::before {
    display: none;
}

.submenu .has-submenu > a::before {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
    border-right: none;
    margin-left: 0;
    margin-right: 0;
    float: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.submenu .has-submenu > a {
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    position: absolute;
    bottom: 60px;
    right: 60px;
    z-index: 2;
    text-align: right;
}

.slide-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.slide-content .slide-link {
    color: white;
    text-decoration: underline;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.slide-content .slide-link:hover {
    opacity: 0.8;
}

.slide-dark .slide-content h2,
.slide-dark .slide-content .slide-link {
    color: black;
}

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

/* ===========================
   SERVICES SECTION
   =========================== */

.services {
    padding: 100px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: white;
    border-color: var(--border-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: 'The Seasons', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   PRODUCTS SECTION
   =========================== */

.products {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 350px;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-family: 'The Seasons', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================
   EVENTS SECTION
   =========================== */

.events {
    padding: 100px 0;
    background: var(--bg-white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.event-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover img {
    transform: scale(1.1);
}

/* ===========================
   LOCATION SECTION
   =========================== */

.location {
    padding: 100px 0;
    background: var(--bg-light);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-text h3 {
    font-family: 'The Seasons', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-text p {
    color: var(--text-light);
    line-height: 1.7;
}

.info-text a {
    color: var(--primary-color);
    font-weight: 500;
}

.info-text a:hover {
    color: var(--primary-dark);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
}

/* ===========================
   FOOTER
   =========================== */

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: #f9f9f4;
    color: var(--text-dark);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-column ul li p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column .social-links li {
    margin-bottom: 0.75rem;
}

.footer-column .social-links a svg {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-column .social-links a:hover svg {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 968px) {
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        order: 0;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
        order: 3;
        overflow-y: auto;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu a {
        color: var(--text-dark) !important;
        padding: 0.75rem 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile submenu styles */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-submenu.active > .submenu {
        max-height: 500px;
    }

    .submenu a {
        padding-left: 3rem !important;
    }

    .submenu .submenu a {
        padding-left: 4rem !important;
    }

    .submenu a:hover {
        padding-left: 3.5rem !important;
    }

    .submenu .submenu a:hover {
        padding-left: 4.5rem !important;
    }

    .submenu .submenu {
        left: 0;
        margin-left: 0;
    }

    .has-submenu > a {
        cursor: pointer;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .products-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ===========================
   LA MARCA PAGE
   =========================== */

.marca-page {
    padding-top: 0;
}

/* Header oscuro para la pÃ¡gina de la marca */
.marca-page .header {
    background: #f9f9f4 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Header no fixed para galerÃ­a */
.galeria-page .header {
    position: relative !important;
    background: #f9f9f4 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.marca-page .header .nav-menu a,
.marca-page .nav a,
.galeria-page .header .nav-menu a,
.galeria-page .nav a {
    color: var(--text-dark) !important;
}

.marca-page .menu-toggle span,
.galeria-page .menu-toggle span {
    background: var(--text-dark) !important;
}

.marca-section {
    padding: 0;
}

.marca-section:first-child {
    padding-top: 140px;
}

.marca-section:nth-child(even) {
    background: transparent;
}

.marca-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.marca-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 100vh;
}

.marca-section-reverse .marca-content {
    grid-template-columns: 1fr 1fr;
}

.marca-section-reverse .marca-image {
    order: 1;
}

.marca-section-reverse .marca-text {
    order: 2;
}

.marca-text {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.marca-title {
    font-family: 'The Seasons', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.marca-section:first-child .marca-title {
    font-size: 4rem;
}

.marca-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.9;
}

.marca-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.marca-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .marca-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .marca-section-reverse .marca-content {
        grid-template-columns: 1fr;
    }

    .marca-section-reverse .marca-image {
        order: 0;
    }

    .marca-section-reverse .marca-text {
        order: 0;
    }

    .marca-title {
        font-size: 2.5rem;
    }

    .marca-section:first-child .marca-title {
        font-size: 3rem;
    }

    .marca-text {
        padding: 60px 40px;
    }

    .marca-image img {
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .marca-text {
        padding: 40px 20px;
    }

    .marca-title {
        font-size: 2rem;
    }

    .marca-section:first-child .marca-title {
        font-size: 2.2rem;
    }

    .marca-description {
        font-size: 1rem;
    }

    .marca-image img {
        min-height: 300px;
    }
}
/* ===========================
   GALERIA PAGE
   =========================== */

.galeria-main {
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.galeria-title {
    font-family: 'The Seasons', serif;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
    letter-spacing: 2px;
}

.galeria-grid {
    column-count: 3;
    column-gap: 20px;
}

.galeria-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.02);
}

.galeria-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Responsive Galeria */
@media (max-width: 968px) {
    .galeria-main {
        padding-top: 100px;
    }
    
    .galeria-grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    .galeria-item {
        margin-bottom: 15px;
    }
    
    .galeria-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 640px) {
    .galeria-grid {
        column-count: 1;
    }
    
    .galeria-title {
        font-size: 2rem;
    }
}

