/* =========================================================================
   Patagonia Sur Travel — Demo Agency White-Label
   Identidad visual: marina (azul oceánico + dorado), tipografía elegante.
   ========================================================================= */

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

:root {
    --color-primary: #0c4a6e;       /* azul oceánico oscuro */
    --color-secondary: #d4a017;     /* dorado/mostaza */
    --color-accent: #0ea5e9;        /* celeste claro */
    --color-bg: #f9fafb;
    --color-bg-alt: #ffffff;
    --color-text: #1f2937;
    --color-text-soft: #6b7280;
    --color-border: #e5e7eb;
    --font-sans: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --shadow-md: 0 4px 12px rgba(12, 74, 110, 0.08);
    --shadow-lg: 0 12px 32px rgba(12, 74, 110, 0.12);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--color-primary); }

/* ---------- Banner demo ---------- */
.demo-banner {
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    padding: 12px 24px;
    text-align: center;
    font-size: 13px;
    color: #92400e;
}
.demo-banner code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-primary);
}
.logo-icon {
    font-size: 32px;
    line-height: 1;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-text strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.logo-text small {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--color-secondary);
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 32px;
    flex: 1;
    margin-left: 40px;
}
.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover {
    color: var(--color-secondary);
}

.cta-whatsapp {
    background: #25d366;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 520px;
    background:
        linear-gradient(135deg, rgba(12, 74, 110, 0.85) 0%, rgba(14, 165, 233, 0.7) 100%),
        url('https://images.unsplash.com/photo-1548574505-5e239809ee19?w=1600') center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 80px 0;
}
.hero-content {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 19px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 160, 23, 0.5);
}

/* ---------- Stats ---------- */
.stats {
    background: var(--color-primary);
    color: #fff;
    padding: 48px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 38px;
    color: var(--color-secondary);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
}

/* ---------- Section header reusable ---------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin-bottom: 12px;
}
.section-header h2 {
    font-family: var(--font-serif);
    font-size: 38px;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--color-text-soft);
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Widget section ---------- */
.widget-section {
    padding: 80px 0;
    background: var(--color-bg-alt);
}
.widget-frame {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
}

/* ---------- Destinations ---------- */
.destinations {
    padding: 80px 0;
    background: var(--color-bg);
}
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.dest-card {
    padding: 32px;
    border-radius: 12px;
    color: #fff;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.dest-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(12, 74, 110, 0.85) 100%);
    z-index: 1;
}
.dest-card h3, .dest-card p { position: relative; z-index: 2; }
.dest-card h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    margin-bottom: 8px;
}
.dest-card p { font-size: 14px; opacity: 0.95; }
.dest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.dest-caribbean { background: linear-gradient(135deg, #06b6d4, #0e7490); background-image: linear-gradient(135deg, #06b6d4, #0e7490), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=600'); }
.dest-mediterranean { background: linear-gradient(135deg, #0ea5e9, #1e40af); background-image: linear-gradient(135deg, #0ea5e9, #1e40af), url('https://images.unsplash.com/photo-1533230050368-eb02e0e80f2c?w=600'); }
.dest-alaska { background: linear-gradient(135deg, #1e3a8a, #312e81); background-image: linear-gradient(135deg, #1e3a8a, #312e81), url('https://images.unsplash.com/photo-1531253450048-aafe392e1f3f?w=600'); }
.dest-norway { background: linear-gradient(135deg, #475569, #0f172a); background-image: linear-gradient(135deg, #475569, #0f172a), url('https://images.unsplash.com/photo-1601925240970-98447ff67c3e?w=600'); }
.dest-southamerica { background: linear-gradient(135deg, #15803d, #166534); }
.dest-asia { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }

/* ---------- About ---------- */
.about {
    padding: 80px 0;
    background: var(--color-bg-alt);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-text h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.about-text p {
    color: var(--color-text-soft);
    font-size: 17px;
    margin-bottom: 16px;
}
.about-features {
    list-style: none;
    margin-top: 24px;
}
.about-features li {
    padding: 8px 0;
    color: var(--color-text);
    font-size: 16px;
}
.about-image {
    text-align: center;
}
.ship-illustration {
    font-size: 220px;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 8px 16px rgba(12, 74, 110, 0.2));
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 80px 0;
    background: var(--color-bg);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testimonial {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: var(--shadow-md);
}
.testimonial p {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 16px;
    font-style: italic;
}
.testimonial footer {
    color: var(--color-text-soft);
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-primary);
    color: #fff;
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
}
.site-footer h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: var(--color-secondary);
}
.site-footer p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 8px;
}
.logo-footer { color: #fff; }
.logo-footer .logo-text strong { color: #fff; }
.footer-tagline {
    margin-top: 12px;
    font-style: italic;
    opacity: 0.85;
}

.newsletter {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.newsletter input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter button {
    background: var(--color-secondary);
    color: var(--color-primary);
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 24px 0;
    text-align: center;
}
.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; gap: 16px; }
    .main-nav { order: 3; flex-basis: 100%; margin-left: 0; justify-content: center; gap: 20px; flex-wrap: wrap; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .ship-illustration { font-size: 140px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-header h2 { font-size: 28px; }
    .widget-frame { padding: 16px; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   V1 — Sección Buscador rápido (form inline ENCONTRÁ TU CRUCERO)
   ========================================================================= */

.v1-section {
    padding: 60px 0;
    background: var(--color-bg-alt);
}

.version-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.version-tag-v1 {
    background: var(--color-primary);
    color: #fff;
}

.version-tag-v2 {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Buscador estilo "ENCONTRÁ TU CRUCERO" del CruiseFinder original */
.cf-search-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 1100px;
    margin: 32px auto;
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cf-search-header {
    background: #1e40af;
    color: #f9fafb;
    padding: 10px 16px;
}

.cf-search-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f9fafb;
}

.cf-search-form {
    padding: 14px 16px;
    background: #fff;
}

.cf-search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: end;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cf-field label {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
}

.cf-field input,
.cf-field select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #111827;
    box-sizing: border-box;
    height: 32px;
    font-family: inherit;
}

.cf-field input:focus,
.cf-field select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.15);
}

.cf-field-button button {
    width: 100%;
    padding: 8px 16px;
    background: #1f2937;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    height: 32px;
    transition: background 120ms ease;
    font-family: inherit;
}

.cf-field-button button:hover {
    background: #374151;
}

.cf-search-footer {
    padding: 8px 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
    font-size: 11px;
    color: #6b7280;
}

.cf-search-footer a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.version-note {
    margin-top: 24px;
    padding: 14px 18px;
    background: #f9fafb;
    border-left: 4px solid var(--color-secondary);
    border-radius: 4px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.version-note strong {
    color: var(--color-primary);
}

.version-note code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #111;
}

/* Responsive del cf-search-grid */
@media (min-width: 640px) {
    .cf-search-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .cf-search-grid { grid-template-columns: repeat(6, 1fr); }
}

/* =========================================================================
   V2 — Sección Página dedicada (CTA + mock browser preview)
   ========================================================================= */

.v2-section {
    padding: 60px 0;
    background: #f3f4f6;
}

.v2-cta-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin: 32px auto;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.v2-cta-content h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.v2-cta-content ul {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
}

.v2-cta-content ul li {
    padding: 6px 0;
    color: #374151;
    font-size: 15px;
}

.v2-cta-content code {
    background: #fef3c7;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #92400e;
}

.v2-btn {
    margin-top: 12px;
    display: inline-block;
}

/* Mock browser para preview visual */
.v2-mock-browser {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.v2-mock-bar {
    background: #f3f4f6;
    padding: 8px 12px;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-mock-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.v2-mock-dot:nth-child(1) { background: #ef4444; }
.v2-mock-dot:nth-child(2) { background: #f59e0b; }
.v2-mock-dot:nth-child(3) { background: #10b981; }

.v2-mock-url {
    flex: 1;
    margin-left: 8px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 10px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #4b5563;
}

.v2-mock-body {
    background: #f9fafb;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.v2-mock-header {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.v2-mock-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-mock-search-bar {
    height: 36px;
    background: #1e40af;
    border-radius: 4px;
}

.v2-mock-row {
    height: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .v2-cta-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    .v2-cta-preview { display: none; }
}

/* =========================================================================
   /buscador.html — Página dedicada V2 (header minimal + iframe)
   ========================================================================= */

.buscador-body {
    background: #f3f4f6;
}

.buscador-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
    box-shadow: var(--shadow-md);
}

.buscador-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    color: var(--color-text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--color-primary);
}

.buscador-intro {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.buscador-intro h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    margin-bottom: 8px;
    color: #fff;
}

.buscador-intro p {
    font-size: 17px;
    opacity: 0.95;
}

.buscador-main {
    padding: 32px 0 48px;
}

.buscador-main .container {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 0;
    overflow: hidden;
}

.buscador-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.buscador-footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
}
