/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-blue: #0b4b8a;
    /* Base dark blue */
    --secondary-blue: #0d6efd;
    /* Button blue */
    --secondary-blue-hover: #0b5ed7;
    --dark-bg: #092642;
    /* Footer background */
    --text-dark: #333333;
    --text-gray: #666666;
    --light-bg: #f8fafd;
    --white: #ffffff;
    --border-color: #e0e4e8;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-nav {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(180deg, #1877F2 0%, #0d6efd 100%);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #1a80fb 0%, #0b5ed7 100%);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
    transform: translateY(-1px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 40px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

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

.logo img {
    height: 65px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 150px 0 100px;
    min-height: 800px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 650px;
    /* Fondo azul con altura fija */
    background-image: url('../img/barco.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay from dark blue to transparent */
    background: linear-gradient(90deg, rgba(11, 75, 138, 0.9) 0%, rgba(11, 75, 138, 0.4) 60%, rgba(11, 75, 138, 0.1) 100%);
    z-index: -1;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    color: var(--white);
    padding-top: 40px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content .subtitle {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.trust-block {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.trust-item i {
    color: #4CAF50;
    /* Green checkmark */
    font-size: 16px;
}

/* ==========================================================================
   Lead Form
   ========================================================================== */
.hero-form-wrapper {
    flex: 0 0 450px;
    margin-left: 40px;
}

.form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background-color: var(--white);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-gray);
}

.form-group select {
    appearance: none;
}

.form-group textarea {
    resize: vertical;
}

.radio-group {
    margin-bottom: 25px;
}

.radio-title {
    margin-bottom: 10px !important;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dark) !important;
    font-weight: 400 !important;
    margin-bottom: 8px !important;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-blue);
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-inline {
    margin-top: 130px;
    text-align: center;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    /* Reducido para que quepa bien bajo el tÃ­tulo */
    width: 100%;
    margin: 0 auto;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step .icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.step p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark) !important;
    line-height: 1.3;
}

.step-arrow {
    color: #cbd5e1;
    font-size: 18px;
}

/* ==========================================================================
   Security Section
   ========================================================================== */
.security-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.security-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.security-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.security-text p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    padding: 80px 0 100px;
    background-color: var(--light-bg);
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px 30px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    flex: 0 1 450px;
    position: relative;
}

/* Tail of the speech bubble */
.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 40px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
    display: block;
    width: 0;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: #e2e8f0;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.4;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stars {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 10px;
}

.stars .fa-star-half-stroke {
    color: #f59e0b;
}

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

/* ==========================================================================
   Footer CTA Section
   ========================================================================== */
.footer-cta {
    background-color: var(--dark-bg);
    padding: 60px 0;
    text-align: center;
}

.footer-cta h2 {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-bg {
        height: 580px; /* Ajuste para que cubra el texto pero no el formulario ni How It Works */
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        margin-bottom: 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .trust-block {
        align-items: flex-start;
        display: inline-flex;
        text-align: left;
    }

    .how-it-works-inline {
        margin-top: 60px; /* Menos margen en tablet/mÃ³vil */
    }

    .hero-form-wrapper {
        margin-left: 0;
        width: 100%;
        max-width: 550px;
    }

    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* MenÃº hamburguesa irÃ­a aquÃ­ en el futuro */
    }

    .site-header {
        padding: 15px 0;
    }

    .logo img {
        height: 45px; /* Logo un poco mÃ¡s pequeÃ±o en mÃ³vil */
    }

    .hero-section {
        padding: 100px 0 50px;
    }

    .hero-bg {
        height: 620px; /* El texto puede tomar mÃ¡s lÃ­neas, asÃ­ que ajustamos el fondo */
    }

    .hero-content h1 {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .hero-content .subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .trust-block {
        padding: 20px;
        width: 100%;
    }

    .trust-item {
        font-size: 14px;
    }

    .steps-container {
        flex-direction: column;
        gap: 15px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-card {
        padding: 25px;
    }

    .form-card h2 {
        font-size: 22px;
    }

    .security-container {
        flex-direction: column;
        text-align: center;
    }

    .security-text h2 {
        font-size: 18px;
    }

    .footer-cta h2 {
        font-size: 24px;
    }
}
/* ==========================================================================
   Animations & Dynamic Effects
   ========================================================================== */

/* Animaciones de Entrada (Keyframes) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Clases de Intersection Observer */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos Hover Dinámicos */

.trust-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.trust-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.trust-item {
    transition: transform 0.2s ease, color 0.2s ease;
}
.trust-item:hover {
    transform: translateX(5px);
    color: var(--white);
}

.form-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step .icon-wrapper {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.step:hover .icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(11, 75, 138, 0.3);
}

.security-icon {
    animation: float 4s ease-in-out infinite;
}

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Logo hover */
.logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

