:root {
    --brand:        #1e4db5;
    --brand-dark:   #152f6e;
    --brand-light:  #e8eef9;
    --text:         #1a2540;
    --text-muted:   #5a6a80;
    --bg:           #f0f4fb;
    --white:        #ffffff;
    --border:       #d4ddf0;
    --shadow:       0 4px 20px rgba(30, 77, 181, 0.09);
    --shadow-hover: 0 8px 32px rgba(30, 77, 181, 0.18);
    --radius:       10px;
    --ease:         0.22s ease;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text);
}

/* ── Header ── */
header {
    background: var(--white);
    border-bottom: 3px solid var(--brand);
    padding: 22px 40px;
    box-shadow: 0 2px 10px rgba(30, 77, 181, 0.07);
    position: sticky;
    top: 0;
    z-index: 100;
}

header a {
    display: inline-block;
    line-height: 0;
}

.logo {
    max-width: 420px;
    width: 100%;
    height: auto;
}

/* ── Main ── */
main {
    flex: 1;
    padding: 50px 20px;
}

/* ── Home layout ── */
.home-container {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Card ── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 48px;
    border-top: 4px solid var(--brand);
    transition: box-shadow var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* ── Home card ── */
.home-card {
    text-align: center;
    animation: fadeUp 0.45s ease both;
}

.direccion-img {
    max-width: 460px;
    width: 100%;
    height: auto;
}

/* ── Fachada card ── */
.fachada-card {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    animation: fadeUp 0.55s ease both;
}

.fachada-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.fachada-card:hover .fachada-img {
    transform: scale(1.03);
}

.fachada-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(21, 47, 110, 0.88));
    color: white;
    padding: 28px 22px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: padding 0.25s ease;
}

.fachada-card:hover .fachada-overlay {
    padding-bottom: 20px;
}

.card-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.contact-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 26px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--ease);
    letter-spacing: 0.2px;
    line-height: 1;
}

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

.btn-primary:hover {
    background: #1840a0;
    border-color: #1840a0;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(30, 77, 181, 0.30);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(30, 77, 181, 0.25);
}

.btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--brand-dark);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 999;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── LOPD page ── */
.lopd-container {
    max-width: 860px;
    margin: 0 auto;
    animation: fadeUp 0.45s ease both;
}

.lopd-container h1 {
    font-size: 22px;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.lopd-container .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.lopd-section {
    margin-bottom: 28px;
}

.lopd-section h2 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--brand);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.lopd-section p,
.lopd-section ul {
    font-size: 14px;
    color: #3a4a60;
    line-height: 1.85;
}

.lopd-section ul {
    padding-left: 20px;
}

.lopd-section ul li {
    margin-bottom: 5px;
}

.lopd-section a {
    color: var(--brand);
    text-decoration: none;
}

.lopd-section a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: gap var(--ease);
}

.back-link:hover {
    gap: 10px;
}

/* ── Footer ── */
footer {
    background: var(--brand-dark);
    color: var(--white);
    padding: 36px 40px 24px;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-section h3 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
    color: #7fa8e0;
}

.footer-section p {
    font-size: 13px;
    color: #c0d0ea;
    line-height: 1.9;
}

.footer-section a {
    font-size: 13px;
    color: #c0d0ea;
    text-decoration: none;
    line-height: 1.9;
    display: block;
    transition: color var(--ease);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 960px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid #243f7a;
    text-align: center;
    font-size: 12px;
    color: #6a87b8;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    header { padding: 18px 20px; }
    main { padding: 30px 14px; }
    .card { padding: 28px 20px; }
    footer { padding: 28px 20px 20px; }
    .footer-content { flex-direction: column; gap: 20px; }
    .btn { padding: 10px 20px; font-size: 13px; }
}
