:root {
    --color-bg: #f5f6fa;
    --color-bg-dark: #041021;
    --color-primary: #0e2a4d;
    --color-primary-soft: #163a6e;
    --color-accent: #c89b3c;
    --color-accent-soft: rgba(200, 155, 60, 0.16);
    --color-text: #1f2933;
    --color-text-light: #e5e7eb;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(5, 18, 40, 0.25);
    --shadow-card: 0 10px 30px rgba(5, 18, 40, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: radial-gradient(circle at top left, #ffffff 0, #f1f4fb 45%, #dde4f3 100%);
}

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

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

a:hover {
    text-decoration: underline;
}

/* Layout base */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */

.site-header {
    background: #ffffffcc;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.logo-block {
    display: flex;
    align-items: center;
}

/* tamaño reducido del logo */
.logo-img {
    height: 120px;   /* prueba incluso 32px si lo quieres más chico */
    width: auto;
    flex-shrink: 0;
}

.header-contact {
    text-align: right;
    font-size: 0.9rem;
}

.header-phone a {
    font-weight: 600;
    color: var(--color-primary);
}

.header-address {
    color: #6b7280;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("assets/hero.jpg");
    background-size: cover;
    background-position: center right;
    filter: saturate(1.1);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left, rgba(10, 29, 64, 0.96) 0, rgba(10, 29, 64, 0.94) 32%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 32px;
    padding: 72px 16px 64px;
    align-items: center;
}

.hero-text h1 {
    font-family: "Merriweather", "Georgia", serif;
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    margin: 0 0 14px;
}

.hero-text p {
    margin: 0 0 22px;
    max-width: 520px;
    line-height: 1.6;
    font-size: 0.98rem;
    color: #e5e7eb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Botones */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, var(--color-accent), #f3c261);
    color: #111827;
    box-shadow: 0 14px 30px rgba(148, 109, 32, 0.55);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(148, 109, 32, 0.62);
}

.btn.secondary {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

.btn.secondary:hover {
    background: rgba(15, 23, 42, 0.9);
}

.btn.full-width {
    width: 100%;
}

/* Hero side */

.hero-side {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: rgba(15, 23, 42, 0.94);
    border-radius: var(--radius-lg);
    padding: 18px 20px 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-soft);
    max-width: 360px;
}

.hero-card h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 0.9rem;
}

.hero-card li::before {
    content: "• ";
    color: var(--color-accent);
}

.hero-note {
    font-size: 0.82rem;
    color: #cbd5f5;
}

/* Secciones generales */

.section {
    padding: 52px 16px;
}

.section.light {
    background: transparent;
}

.section.dark {
    background: radial-gradient(circle at top, #18223a 0, #020617 80%);
    color: var(--color-text-light);
}

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

.section-header h2 {
    font-family: "Merriweather", "Georgia", serif;
    font-size: 1.6rem;
    margin: 0 0 6px;
}

.section-header p {
    margin: 0;
    color: #6b7280;
    max-width: 520px;
    font-size: 0.95rem;
}

.section.dark .section-header p {
    color: #cbd5f5;
}

.section-header-center {
    text-align: center;
}

.section-header-center p {
    margin-left: auto;
    margin-right: auto;
}

/* Grid y tarjetas */

.grid {
    display: grid;
    gap: 18px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px 18px 18px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    color: var(--color-primary);
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4b5563;
}

.section.dark .card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
}

.section.dark .card h3 {
    color: #e5e7eb;
}

.section.dark .card p {
    color: #cbd5f5;
}

.card-ghost {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.98));
}

/* Licencia */

.licencia {
    margin-top: 26px;
    font-size: 0.9rem;
    color: #e5e7eb;
    text-align: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(200, 155, 60, 0.18), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(248, 250, 252, 0.2);
}

/* Contacto */

.section.contact {
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: flex-start;
}

.contact-info p {
    font-size: 0.96rem;
    color: #4b5563;
    max-width: 520px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 20px;
    font-size: 0.9rem;
}

.contact-list li + li {
    margin-top: 6px;
}

.contact-form-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px 18px 18px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-form h3 {
    margin-top: 0;
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 4px;
    color: #4b5563;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background-color: #f9fafb;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(14, 42, 77, 0.2);
    background-color: #ffffff;
}

.form-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #16a34a;
}

.form-disclaimer {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #6b7280;
}

/* Footer */

.site-footer {
    background: #020617;
    color: #9ca3af;
    padding: 18px 16px 22px;
    font-size: 0.8rem;
}

.footer-inner {
    text-align: center;
}

.footer-small {
    margin-top: 4px;
    color: #6b7280;
}

/* Responsive */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .header-contact {
        text-align: center;
    }
    .logo-icon {
        height: 34px; /* aún más compacto en móvil */
    }
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 56px;
        padding-bottom: 40px;
    }
    .hero-side {
        justify-content: flex-start;
    }
    .hero-card {
        max-width: 100%;
        margin-top: 8px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    .hero-text p {
        font-size: 0.9rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .section {
        padding: 40px 14px;
    }
}