/*
Theme Name: Rumbo a Suiza
Theme URI: https://rumboasuiza.com
Author: GNS Advisory
Author URI: https://gnsadvisory.com
Description: Landing page minimalista blanco y negro tipo carta personal.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rumbo-suiza
*/

/* ==========================================================================
   VARIABLES - SOLO BLANCO Y NEGRO
   ========================================================================== */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --gray-light: #e5e5e5;

    --font-primary: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.8;

    --max-width-email: 680px;
    --transition: 0.2s ease;
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--black);
    text-decoration: underline;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.6;
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    margin: 48px 0 24px;
}

p {
    margin-bottom: 16px;
}

strong {
    font-weight: 700;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width-email);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER CON IMAGEN DE FONDO
   ========================================================================== */

.site-header {
    position: relative;
    padding: 100px 0;
    background-image: url('/wp-content/uploads/2026/01/matteo-catanese-kSYwKLhTNz0-unsplash-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
}

.header-inner {
    display: flex;
    justify-content: center;
}

.site-logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    /* Fondo blur transparente con bordes rectos */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 24px;
    border-radius: 0;
    cursor: default;
}

.site-logo-text:hover {
    opacity: 1;
}

/* Bandera Suiza - CSS puro */
.swiss-flag {
    width: 24px;
    height: 24px;
    background-color: #DA291C;
    position: relative;
    flex-shrink: 0;
}

.swiss-flag::before,
.swiss-flag::after {
    content: '';
    position: absolute;
    background-color: #ffffff;
}

/* Barra horizontal de la cruz */
.swiss-flag::before {
    width: 14px;
    height: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Barra vertical de la cruz */
.swiss-flag::after {
    width: 4px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   EMAIL BODY
   ========================================================================== */

.rumbo-email {
    padding: 60px 0 80px;
}

.email-body {
    max-width: var(--max-width-email);
    margin: 0 auto;
}

/* Cabecera autor */
.email-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-light);
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--black);
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.author-role {
    font-size: 14px;
    color: var(--gray);
}

/* Contenido email */
.email-content {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.email-content p {
    margin-bottom: 16px;
    color: var(--black);
}

/* Separador visual (---) */
.email-separator {
    border: none;
    border-top: 1px solid var(--gray-light);
    margin: 40px 0;
}

/* Enlaces inline */
.email-content a.inline-cta,
.inline-cta {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
}

/* Firma */
.email-signature {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-light);
}

.signature-text {
    color: var(--gray);
    margin-bottom: 8px;
}

.signature-name {
    font-size: 20px;
    font-weight: 700;
}

/* Postdata - mismo tamaño que el resto del email */
.email-postdata {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-light);
}

.email-postdata p {
    color: var(--black);
    margin-bottom: 16px;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.email-postdata strong {
    color: var(--black);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--black);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
    opacity: 1;
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
    opacity: 1;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.rumbo-cta {
    padding: 60px 0;
    text-align: center;
    background: var(--black);
}

.rumbo-cta h2 {
    color: var(--white);
    margin: 0 0 12px;
    font-size: 24px;
}

.rumbo-cta p {
    color: var(--gray);
    margin-bottom: 32px;
}

.rumbo-cta .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.rumbo-cta .btn-primary:hover {
    background: transparent;
    color: var(--white);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */

.rumbo-newsletter {
    padding: 60px 0;
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
}

.newsletter-content {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.newsletter-subtitle {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 16px;
}

/* Formulario Brevo - Solo para form id=1 */
#sib_signup_form_2 input[type="email"],
#sib_signup_form_2 input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--font-primary);
    border: 2px solid var(--black);
    margin-bottom: 12px;
    background: var(--white);
}

#sib_signup_form_2 input:focus {
    outline: none;
    background: #f5f5f5;
}

#sib_signup_form_2 button[type="submit"],
#sib_signup_form_2 input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: var(--black);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-primary);
    border: 2px solid var(--black);
    cursor: pointer;
    transition: all var(--transition);
}

#sib_signup_form_2 button[type="submit"]:hover,
#sib_signup_form_2 input[type="submit"]:hover {
    background: var(--white);
    color: var(--black);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    padding: 24px 0;
    background: var(--white);
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

.footer-content {
    color: var(--gray);
    font-size: 14px;
}

.footer-content a {
    color: var(--black);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --font-size-base: 17px;
    }

    /* Header móvil - más alto y desde arriba */
    .site-header {
        padding: 60px 0 40px;
        min-height: 180px;
        background-position: center top;
    }

    .site-logo-text {
        font-size: 16px;
        padding: 10px 20px;
        gap: 10px;
    }

    .swiss-flag {
        width: 20px;
        height: 20px;
    }

    .swiss-flag::before {
        width: 12px;
        height: 3px;
    }

    .swiss-flag::after {
        width: 3px;
        height: 12px;
    }

    .rumbo-email {
        padding: 40px 0 60px;
    }

    .email-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .author-photo {
        width: 90px;
        height: 90px;
    }

    .author-info {
        align-items: center;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    .btn {
        width: 100%;
        padding: 14px 32px;
    }

    .rumbo-cta,
    .rumbo-newsletter {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    /* Header móvil pequeño */
    .site-header {
        padding: 50px 0 30px;
        min-height: 150px;
    }

    .site-logo-text {
        font-size: 14px;
        padding: 8px 16px;
    }

    .rumbo-email {
        padding: 32px 0 48px;
    }
}
