/* ============================================= */
/* PERITADO - Main Styles                        */
/* ============================================= */

:root {
    --primary: #0A2540;
    --accent: #E30613;
    --text: #1F2937;
    --light: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 700px;
    height: 85vh;
    max-height: 880px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('hero-desktop.jpg');
    background-size: cover;
    background-position: center 25%;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.25);
    z-index: -1;
}

/* Hero Content - Moderate right shift */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content .container {
    /* max-width: 620px;            Wider text block to prevent bad breaks */
    margin-left: 12%;           /* ~20% shift to the right */
    margin-right: auto;
}

.hero-content h1 {
    font-size: 3.0rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.lead {
    font-size: 1.32rem;
    margin-bottom: 2.2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Language Switcher */
.language-switch {
    position: absolute;
    top: 35px;
    right: 40px;
    z-index: 10;
    background: rgba(255,255,255,0.18);
    padding: 6px;
    border-radius: 30px;
}

.language-switch a {
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 500;
}

.language-switch a.active,
.language-switch a:hover {
    background: rgba(255,255,255,0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: inherit;
}

.hero-buttons .btn {
    margin-right: 12px;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: #c0040f;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

/* ==================== GENERAL SECTIONS ==================== */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-sm {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.card, .pricing-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.card.icon-card {
    padding: 22px 16px;
    font-weight: 600;
}

.card.icon-card small {
    display: block;
    font-weight: 400;
    font-size: 0.7rem;
    color: #999;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.os-new-row {
    grid-column: 1;
}

.pricing-card.selected {
    border: 3px solid var(--accent);
    transform: scale(1.05);
}

.pricing-category {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 3.5rem 0 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.pricing-category:first-of-type {
    margin-top: 0.5rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.pricing-meta {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pricing-card ul li {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.92rem;
}

.price {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.price strong {
    font-size: 1.35rem;
    color: var(--accent);
}

.price-disclaimer {
    font-size: 0.78rem;
    opacity: 0.6;
    margin-top: 1.25rem;
}

/* Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 50px 20px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-bg {
        background-image: url('hero-tablet.jpg');
        background-position: center 28%;
    }
    .hero { max-height: 740px; }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        max-height: none;
        align-items: flex-start;
        padding-top: 110px;
    }
    .hero-bg {
        background-image: url('hero-mobile.jpg');
        background-position: center 35%;
    }
    
    .hero-content .container {
        max-width: 90%;
        margin-left: 5%;
    }
    
    h1 { font-size: 2.35rem; }
    .lead { font-size: 1.15rem; }
    
    .section { padding: 70px 0; }
    h2 { font-size: 2rem; }
}

/* Contact Form Button */
.contact-form button {
    display: block;
    margin: 20px auto 0;
    min-width: 280px;
}