:root {
    --color-siena: #C8553D;
    --color-teal: #649A8F;
    --color-crema: #E6D5B8;
    --color-crema-light: #f2e9d9;
    --color-black: #2d3436;
    --color-white: #FFFFFF;
    --font-main: 'Outfit', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-strong: 0 20px 40px rgba(100, 154, 143, 0.15);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-crema);
    color: var(--color-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Sutil textura de fondo si existe bg.png */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg.png') repeat;
    opacity: 0.03;
    z-index: -1;
}

header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.language-selector {
    display: flex;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 4px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
}

.language-selector button {
    background: none;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-teal);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-selector button.active {
    background: var(--color-teal);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(100, 154, 143, 0.3);
}

.language-selector button:hover:not(.active) {
    background: rgba(100, 154, 143, 0.1);
    transform: translateY(-1px);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 4rem;
    animation: fadeInDown 1.2s ease-out;
}

.logo-icon svg {
    width: 100px;
    height: auto;
    margin-bottom: 1.5rem;
}

.brand-name {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.6rem;
    color: var(--color-teal);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.brand-subtitle-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--color-siena);
    opacity: 0.9;
}

.line {
    height: 1px;
    width: 40px;
    background-color: var(--color-siena);
}

.brand-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
}

#main-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    opacity: 0.7;
}

.location-cards {
    display: flex;
    gap: 3rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.card {
    background: var(--color-crema-light);
    width: 420px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover {
    transform: translateY(-15px);
}

.card:hover::after {
    opacity: 1;
}

.card-image-container {
    height: 300px;
    overflow: hidden;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-image {
    transform: scale(1.08);
}

.card-image.bcn { background-image: url('bcn.png'); }
.card-image.petit { background-image: url('petit.png'); }

.card-content {
    padding: 2.5rem;
    background: var(--color-crema-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.card-content h3 {
    font-size: 2rem;
    color: var(--color-teal);
    font-weight: 400;
}

.card-content p {
    font-size: 1rem;
    color: var(--color-black);
    opacity: 0.7;
    max-width: 250px;
}

.btn-visit {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 3rem;
    background-color: var(--color-siena);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(200, 85, 61, 0.2);
}

.card:hover .btn-visit {
    background-color: var(--color-teal);
    box-shadow: 0 6px 15px rgba(100, 154, 143, 0.2);
    transform: scale(1.05);
}

footer {
    padding: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-teal);
    opacity: 0.5;
    letter-spacing: 0.1rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .brand-name { font-size: 3rem; letter-spacing: 0.4rem; }
    .card { width: 100%; max-width: 400px; }
    .location-cards { gap: 2rem; }
}
