/**
 * Casa Alta Tenerife - Landing Pages Shared Styles
 */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Language Selector */
.lang-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.95);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-selector a {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #6b7280;
    transition: all 0.2s;
}

.lang-selector a:hover,
.lang-selector a.active {
    background: #2563eb;
    color: white;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Hero Sections */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-remote {
    background: linear-gradient(rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.6)),
                url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=2000&q=80');
}

.hero-cycling {
    background: linear-gradient(rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.6)),
                url('https://images.unsplash.com/photo-1541625602330-2277a4c46182?auto=format&fit=crop&w=2000&q=80');
}

.hero-wellness {
    background: linear-gradient(rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0.6)),
                url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=2000&q=80');
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.5rem;
}

.btn-primary {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
}

.btn-full {
    width: 100%;
}

/* Trust Bar */
.trust-bar {
    background: #f0fdf4;
    padding: 1rem 0;
    border-bottom: 1px solid #d1fae5;
}

.trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-urgency {
    color: #dc2626;
    font-weight: 600;
}

.stars {
    color: #f59e0b;
    font-size: 1.2rem;
}

.muted {
    color: #6b7280;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #6b7280;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bg-gray {
    background: #f9fafb;
}

.contact-bg {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.card p {
    color: #6b7280;
    line-height: 1.7;
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Pricing */
.pricing-highlight {
    background: #10b981;
    color: white;
    border: 3px solid #059669;
}

.pricing-highlight h3,
.pricing-highlight .price {
    color: white;
}

.pricing-highlight p,
.pricing-highlight .ideal,
.pricing-highlight strong {
    color: white;
}

.pricing-highlight .feature-list li {
    color: rgba(255, 255, 255, 0.9);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin: 1rem 0;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.pricing-highlight .price-period {
    color: rgba(255, 255, 255, 0.8);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.pricing-highlight .feature-list li:before {
    color: white;
}

.ideal {
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* CTA Block */
.cta-block {
    text-align: center;
    margin-top: 3rem;
}

.cta-subtext {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Offer Box */
.offer-box {
    text-align: center;
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
}

.offer-box h3 {
    margin-bottom: 1.5rem;
}

.offer-box .grid {
    text-align: left;
}

.note {
    color: #6b7280;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Testimonials */
.quote {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Contact Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

.form-group.checkbox a {
    color: #2563eb;
}

.form-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

/* WhatsApp Alt */
.whatsapp-alt {
    text-align: center;
    margin-top: 1.5rem;
}

.whatsapp-alt p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.whatsapp-alt a {
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
}

/* LAU Box */
.lau-box {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lau-box h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.whatsapp-link {
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f9fafb;
}

.footer p,
.footer a {
    color: #d1d5db;
    text-decoration: none;
    margin: 0.25rem 0;
    display: block;
}

.footer a:hover {
    color: #10b981;
}

.contact-info {
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { height: 80vh; }
    .section { padding: 3rem 0; }
    .grid { gap: 1.5rem; }
    .card { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .lang-selector { top: auto; bottom: 5rem; right: 1rem; }
    .section h2 { font-size: 2rem; }
}

/* ========================================
   Apartment Cards + Lightbox (shared module)
   ======================================== */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}
.apt-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}
.apt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.apt-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.apt-card-image picture,
.apt-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.apt-card:hover .apt-card-image img {
    transform: scale(1.08);
}
.apt-card-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.apt-card-popular {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}
.apt-card-body {
    padding: 1.5rem;
}
.apt-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 0.35rem 0;
}
.apt-card-capacity {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}
.apt-card-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 1rem;
}
.apt-card-price span {
    font-size: 0.95rem;
    font-weight: 400;
    color: #6b7280;
}
.apt-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.apt-card-features li {
    font-size: 0.88rem;
    color: #374151;
    padding: 2px 0;
}
.apt-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}
.apt-card-min {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}
.apt-card-cta {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.apt-card-cta:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.apt-card-photos-link { position:absolute; top:12px; right:12px; background:rgba(255,255,255,0.95); color:#1e40af !important; padding:6px 14px; border-radius:20px; font-size:0.8rem; font-weight:700; text-decoration:none; backdrop-filter:blur(4px); box-shadow:0 2px 8px rgba(0,0,0,0.15); transition:all 0.3s ease; z-index:2; cursor:pointer; }
.apt-card-photos-link:hover { background:#1e40af; color:white !important; transform:translateY(-1px); }
.apt-card-photos-link.coming { background:rgba(255,255,255,0.8); color:#9ca3af !important; cursor:default; font-weight:500; }

@media (max-width: 768px) {
    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .apt-card-image {
        height: 180px;
    }
    .apt-card-price {
        font-size: 1.5rem;
    }
    .apt-card-features {
        grid-template-columns: 1fr;
    }
}

/* Lightbox */
.hl-lightbox { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.96); z-index:9999; align-items:center; justify-content:center; }
.hl-lightbox.active { display:flex; }
.hl-content { display:flex; flex-direction:column; align-items:center; justify-content:center; max-width:94vw; max-height:90vh; }
.hl-img-wrapper { display:flex; align-items:center; justify-content:center; max-width:94vw; max-height:80vh; overflow:hidden; }
.hl-img-wrapper img { max-width:94vw; max-height:80vh; object-fit:contain; border-radius:6px; transition:transform 0.3s ease, opacity 0.25s ease; }
.hl-caption { color:#e2e8f0; padding:14px 20px; font-size:1rem; text-align:center; max-width:600px; line-height:1.5; }
.hl-caption strong { color:white; font-size:1.1rem; }
.hl-close,.hl-prev,.hl-next { position:fixed; background:rgba(255,255,255,0.1); border:none; color:white; cursor:pointer; z-index:10001; transition:all 0.25s ease; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.hl-close:hover,.hl-prev:hover,.hl-next:hover { background:rgba(255,255,255,0.25); }
.hl-close { top:20px; right:20px; font-size:2rem; width:48px; height:48px; }
.hl-prev { left:20px; top:50%; transform:translateY(-50%); font-size:2.5rem; width:52px; height:52px; }
.hl-next { right:20px; top:50%; transform:translateY(-50%); font-size:2.5rem; width:52px; height:52px; }
.hl-counter { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); color:rgba(255,255,255,0.7); font-size:0.9rem; background:rgba(0,0,0,0.5); padding:6px 18px; border-radius:20px; z-index:10001; }
.hl-loading { display:none; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:10002; }
.hl-loading.active { display:block; }
.hl-spinner { width:40px; height:40px; border:3px solid rgba(255,255,255,0.2); border-top-color:white; border-radius:50%; animation:hl-spin 0.8s linear infinite; }
@keyframes hl-spin { to { transform:rotate(360deg); } }
.hl-img-wrapper img.hl-slide-left { animation:hl-slideL 0.25s ease; }
.hl-img-wrapper img.hl-slide-right { animation:hl-slideR 0.25s ease; }
@keyframes hl-slideL { from{transform:translateX(40px);opacity:.5} to{transform:translateX(0);opacity:1} }
@keyframes hl-slideR { from{transform:translateX(-40px);opacity:.5} to{transform:translateX(0);opacity:1} }
@media(max-width:768px){ .hl-prev,.hl-next{width:40px;height:40px;font-size:2rem} .hl-prev{left:8px} .hl-next{right:8px} .hl-close{top:12px;right:12px;width:40px;height:40px} }

/* Mini-FAQ Section - André Approach */
.mini-faq {
    max-width: 800px;
    margin: 30px auto 0;
}
.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.faq-item strong {
    color: #1e3a5f;
    font-size: 1.05em;
}
.faq-item p {
    margin: 8px 0 0;
    color: #555;
    line-height: 1.5;
}
