/*
Theme Name: Rentashield Theme
Theme URI: http://localhost
Author: Antigravity AI
Author URI: http://localhost
Description: Tema Premium para Rentashield - La garantía bancaria del alquiler turístico.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rentashield
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template
*/

/* =========================================
   VARIABLES & TOKENS
   ========================================= */
:root {
    /* Colores extraídos del logo */
    --color-blue: #1C44C2;
    --color-blue-dark: #12306D;
    --color-green: #67B045;
    --color-green-dark: #4d9439;
    --color-gold: #FCD34D;

    /* Neutros */
    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-bg: #F8FAFC;
    --color-white: #FFFFFF;

    /* Fuentes */
    --font-main: 'Outfit', sans-serif;
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.header {
    background-color: var(--color-white);
    padding: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-renta {
    color: var(--color-blue);
}

.logo-shield {
    color: var(--color-green);
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-blue);
}

.btn-outline {
    border: 2px solid var(--color-blue);
    padding: 12px 28px;
    border-radius: 8px;
    color: var(--color-blue) !important;
    transition: all 0.3s ease !important;
}

.btn-outline:hover {
    background-color: var(--color-blue);
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(28, 68, 194, 0.2);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e8f5 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(103, 176, 69, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1.2;
}

.badge {
    display: inline-block;
    background-color: rgba(103, 176, 69, 0.1);
    color: var(--color-green-dark);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
    font-size: 15px;
    border: 1px solid rgba(103, 176, 69, 0.2);
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-blue-dark);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--color-blue);
    background: linear-gradient(to right, var(--color-blue), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 48px;
    max-width: 520px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.btn-primary {
    background-color: var(--color-green);
    color: white;
    padding: 18px 36px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 20px -5px rgba(103, 176, 69, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(103, 176, 69, 0.5);
}

.btn-video {
    display: flex;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.btn-video:hover {
    transform: translateY(-2px);
    color: var(--color-blue);
}

.play-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 54px;
    height: 54px;
    background-color: var(--color-white);
    border-radius: 50%;
    color: var(--color-blue);
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-video:hover .play-icon {
    box-shadow: 0 12px 20px -2px rgba(28, 68, 194, 0.2);
    color: var(--color-white);
    background-color: var(--color-blue);
}

/* Identidad Visual del Hero / Escudo */
.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.shield-container {
    width: 100%;
    max-width: 450px;
    animation: floating 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 40px rgba(28, 68, 194, 0.2));
}

.shield-svg {
    width: 100%;
    height: auto;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotateX(0deg);
    }

    50% {
        transform: translateY(-20px) rotateX(5deg);
    }

    100% {
        transform: translateY(0px) rotateX(0deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features {
    padding: 120px 0;
    background-color: var(--color-white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--color-blue-dark);
    margin-bottom: 16px;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 72px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background-color: var(--color-bg);
    padding: 48px 40px;
    border-radius: 20px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-blue), var(--color-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 40px -10px rgba(0, 0, 0, 0.08);
    background-color: var(--color-white);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 40px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 32px;
}

.bg-blue {
    background-color: rgba(28, 68, 194, 0.1);
}

.bg-green {
    background-color: rgba(103, 176, 69, 0.1);
}

.bg-gold {
    background-color: rgba(252, 211, 77, 0.2);
}

.feature-card h3 {
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--color-blue-dark);
    font-weight: 800;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 17px;
    line-height: 1.7;
}

/* =========================================
   VIDEO MODAL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: transparent;
    padding: 0 24px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 24px;
    color: var(--color-white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-green);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 50px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    font-size: 16px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.contact-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-form-wrapper {
    flex: 1;
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-blue-dark);
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #F8FAFC;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(28, 68, 194, 0.1);
}

.w-100 {
    width: 100%;
}

/* =========================================
   RESPONSIVE DESIGN (MÓVIL / TABLET)
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        gap: 30px;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-video {
        width: 100%;
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 32px 24px;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 24px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}