/* ========================================
   OneClickServices - Landing Page Styles
   ======================================== */

/* ========================================
   Variables & Reset
   ======================================== */
:root {
    /* Corporate Colors - Based on logo blue and footer */
    --primary-color: #003d82;
    --primary-dark: #002d5f;
    --primary-light: #0052a3;
    --secondary-color: #32b8c6;
    --accent-color: #32b8c6;
    
    /* Neutrals */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Feedback Colors */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.calculator-buttons {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-md);
}

.btn-calculate {
    flex: 1;
    justify-content: center;
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.btn-reset {
    flex: 1;
    justify-content: center;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #003d82;
    border: 2px solid #003d82;
}

.btn-reset:hover {
    background: #32b8c6;
    color: #ffffff;
    border-color: #32b8c6;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .calculator-buttons {
        flex-direction: column;
    }
}

/* ========================================
   Header
   ======================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.nav-menu .btn-contact {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-md);
}

.nav-menu .btn-contact:hover {
    background-color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--text-white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    border-color: var(--text-white);
    color: var(--text-white);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
}

/* ========================================
   Calculator Section
   ======================================== */
.calculator-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.calculator-section h2 {
    text-align: center;
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-form {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-section {
    margin-bottom: var(--spacing-lg);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.required {
    color: var(--error-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

/* Budget Summary (read-only) */
#budgetSummary {
    background-color: #f8f9fa;
    font-style: italic;
    color: #495057;
    cursor: not-allowed;
    resize: none;
    border: 2px solid #dee2e6;
}

#budgetSummary:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

#budgetSummaryContainer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--border-color);
}

#budgetSummaryContainer label {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

#budgetSummaryContainer label::before {
    content: "🔒";
    font-size: 1rem;
}

.services-checkboxes {
    display: grid;
    gap: var(--spacing-sm);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.checkbox-group:hover {
    border-color: var(--primary-light);
    background-color: rgba(30, 115, 190, 0.05);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    margin-bottom: 0;
}

.service-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
}

.service-price {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
}

.checkbox-group input[type="checkbox"]:checked + label {
    color: var(--primary-color);
}

.checkbox-group.hidden {
    display: none;
}

/* Plan de Igualdad Notice */
.checkbox-group.plan-igualdad-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    padding: var(--spacing-md);
}

.checkbox-group.plan-igualdad-notice .notice-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    width: 100%;
}

.checkbox-group.plan-igualdad-notice .fas.fa-info-circle {
    color: #ff9800;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group.plan-igualdad-notice .notice-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.checkbox-group.plan-igualdad-notice .service-name {
    font-weight: var(--font-weight-semibold);
    color: #856404;
}

.checkbox-group.plan-igualdad-notice .service-price {
    font-size: 0.875rem;
    color: #856404;
    font-weight: var(--font-weight-semibold);
    font-style: italic;
}

.checkbox-group.plan-igualdad-notice:hover {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff3cd 0%, #ffd966 100%);
}

.checkbox-group input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.calculator-disclaimer {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-left: 4px solid var(--warning-color);
    border-radius: var(--radius-md);
}

.calculator-disclaimer p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ========================================
   Budget Result
   ======================================== */
.budget-result {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.budget-result h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.budget-details {
    margin-bottom: var(--spacing-md);
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.budget-item-name {
    font-weight: var(--font-weight-semibold);
}

.budget-item-price {
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.budget-discount {
    border-left-color: var(--accent-color);
}

.budget-discount .budget-item-name {
    color: var(--accent-color);
}

.budget-discount .budget-item-price {
    color: var(--accent-color);
}

.budget-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.budget-total span:first-child {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
}

.total-amount {
    font-size: 2rem;
    font-weight: var(--font-weight-extrabold);
}

.budget-result .btn {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.contact-section h2 {
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item p {
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.whatsapp-contact {
    background-color: #25d366;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border-bottom: none;
}

.whatsapp-link {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    color: var(--text-white);
}

.whatsapp-contact i {
    color: var(--text-white);
}

.whatsapp-contact h4,
.whatsapp-contact p {
    color: var(--text-white);
}

.whatsapp-link:hover {
    opacity: 0.9;
}

.contact-form {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.checkbox-group-privacy {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.checkbox-group-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-group-privacy label {
    font-weight: var(--font-weight-normal);
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-group-privacy a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-group-privacy a:hover {
    color: var(--primary-dark);
}

.contact-success {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-success i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: var(--spacing-md);
}

.contact-success h3 {
    color: var(--success-color);
    margin-bottom: var(--spacing-sm);
}

.contact-success p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: #003d82;
    color: var(--text-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 60px;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.footer-contact i {
    margin-right: var(--spacing-xs);
}

.footer-legal-links {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.footer-legal-links .separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .calculator-form,
    .contact-form {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .checkbox-group {
        padding: var(--spacing-sm);
    }
    
    .checkbox-group label {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}
