:root {
    --verde-oliva: #616952;
    --terracota: #C17A54;
    --fondo-crema: #F3EADD;
    --texto-oscuro: #2D2D2D;
    --blanco-puro: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--texto-oscuro);
    background-color: var(--fondo-crema);
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}

.main-container {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
}

.left-col {
    flex: 1.2;
    min-width: 50%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.carousel {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.carousel-images {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-images img {
    width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
}

.gallery-link-container {
    position: absolute;
    bottom: 30px; left: 30px; z-index: 15;
}

.view-more-btn {
    background: var(--terracota);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.view-more-btn:hover { background: var(--verde-oliva); transform: translateY(-2px); }

.carousel-nav {
    position: absolute;
    bottom: 30px; right: 30px; display: flex; gap: 15px; z-index: 10;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white; width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer; display: grid; place-items: center; transition: 0.3s;
}

.carousel-btn:hover { background: var(--terracota); }

.right-col {
    flex: 0.8;
    min-width: 400px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--fondo-crema);
}

.content-wrapper { max-width: 450px; width: 100%; }

.brand-header { text-align: center; margin-bottom: 40px; }

.brand-logo { max-width: 280px; width: 100%; height: auto; }

.intro-text { margin-bottom: 30px; text-align: center; line-height: 1.6; color: #555; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--verde-oliva); text-transform: uppercase; }

.form-group input, .form-group textarea {
    padding: 12px; border: none; border-bottom: 2px solid #DED7C9;
    background-color: transparent; font-family: inherit; font-size: 1rem; transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--terracota); }

.submit-btn {
    background-color: var(--verde-oliva); color: var(--blanco-puro);
    padding: 18px; border: none; border-radius: 4px; font-weight: 700; cursor: pointer; transition: 0.3s;
}

.submit-btn:hover { background-color: #4c5241; box-shadow: 0 5px 15px rgba(97, 105, 82, 0.3); }

.social-footer { margin-top: 50px; text-align: center; }

.social-icons { display: flex; justify-content: center; gap: 25px; margin-top: 15px; }

.icon-link { font-size: 1.6rem; color: var(--terracota); transition: 0.3s; }

.icon-link:hover { color: var(--verde-oliva); transform: translateY(-3px); }

@media (max-width: 900px) {
    .main-container { flex-direction: column; }
    
    .left-col {
        flex: none; /* Clave para que no desaparezca */
        height: 30vh; width: 100%; order: 1; 
    }

    .right-col { flex: none; width: 100%; padding: 40px 20px; order: 2; }

    .brand-logo { max-width: 200px; }

    .gallery-link-container { bottom: 15px; left: 15px; }

    .view-more-btn { padding: 8px 15px; font-size: 0.75rem; }

    .carousel-nav { bottom: 15px; right: 15px; }

    .carousel-btn { width: 35px; height: 35px; }
}

.input-telefono-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.prefijo-chile {
    background-color: #f0f0f0;
    color: #555;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-weight: bold;
    font-size: 1rem;
}

.input-telefono-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    margin-bottom: 0;
    box-sizing: border-box;
    font-size: 1rem;
}

