:root {
    --primary-color: #4b7c47; /* Verde Sólido */
    --secondary-color: #b9692c; /* Naranja Sólido */
    --accent-color: #dbaf33; /* Amarillo / Dorado Sólido */
    --bg-bottom: #41403f; /* Gris Oscuro Sólido */
    --bg-top: #ffffff; /* Blanco */
    --text-dark: #222222;
    --text-light: #ffffff;
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: #e9ecef;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card-container {
    width: 100%;
    max-width: 380px;
    background-color: var(--bg-top);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Sección Superior */
.card-header {
    padding: 35px 20px 10px 20px;
    text-align: center;
    background-color: var(--bg-top);
    z-index: 2;
}

.logo-container {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-width: 160px;
    height: auto;
    display: block;
}

.person-info {
    margin-top: 15px;
}

.person-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.person-position {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Divisorio Onda / Ribbon */
.ribbon-wrapper {
    position: relative;
    width: 100%;
    height: 90px;
    margin-top: -10px;
    margin-bottom: -5px;
    z-index: 3;
}

.ribbon-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Sección Inferior Oscura (Gris) */
.card-body {
    background-color: var(--bg-bottom);
    color: var(--text-light);
    padding: 10px 35px 30px 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

/* Botones de Acción Rápidos (Productos, Brochure, Cotiza ya) */
.quick-actions-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-action i {
    font-size: 12px;
}

.btn-action:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-action-accent {
    background-color: var(--primary-color);
    border: none;
}

.btn-action-accent:hover {
    background-color: #3d663a;
}

/* Lista de Contacto */
.contact-list {
    list-style: none;
    margin-top: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    text-decoration: none;
    color: var(--text-light);
    transition: opacity 0.2s ease;
}

.contact-item:hover {
    opacity: 0.8;
}

.contact-icon {
    width: 25px;
    text-align: center;
    font-size: 14px;
    margin-right: 18px;
    color: var(--accent-color);
}

.contact-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    word-break: break-all;
}

.map-container {
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Footer & Orden Final */
.card-footer {
    text-align: center;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* 1. Califícanos en Google & 5 Estrellas */
.review-btn-container {
    margin-bottom: 25px;
    text-align: center;
}

.rating-stars {
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.btn-review {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-review i {
    font-size: 14px;
}

.btn-review:hover {
    background-color: #3d663a;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* 2. Redes Sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
}

.social-btn {
    color: var(--text-light);
    font-size: 16px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.social-btn:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* 3. Página Web */
.website-link {
    display: block;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.9;
}

.website-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 420px) {
    body {
        padding: 0;
        background-color: var(--bg-bottom);
    }

    .card-container {
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
        box-shadow: none;
    }

    .card-body {
        padding: 10px 25px 30px 25px;
    }

    .btn-action {
        font-size: 9px;
        padding: 8px 2px;
    }
}
