/* 
   Persianas Calpe - Estilos Finales (Refinado)
   Colores: Navy Blue (#0F172A) & Amber (#F59E0B)
*/

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    flex-shrink: 0;
}

:root {
    /* Colores Principales */
    --primary: #F59E0B;       /* Amber 500 */
    --primary-hover: #D97706; /* Amber 600 */
    
    --secondary: #0F172A;     /* Slate 900 */
    --secondary-light: #1E293B; /* Slate 800 */
    
    /* Fondos */
    --bg-white: #FFFFFF;
    --bg-light: #F3F4F6;      /* Gray 100 */
    --bg-dark: #111827;       /* Gray 900 */
    
    /* Textos */
    --text-main: #1F2933;
    --text-muted: #4B5563;    /* Gray 600 */
    --text-light: #9CA3AF;    /* Gray 400 */
    --text-white: #FFFFFF;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-default: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Fonts */
    --font-family: 'Inter', sans-serif;
}

/* Reset Básico */
html {
    scroll-behavior: smooth;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button, input, textarea {
    font-family: inherit;
}

/* Clases Utilitarias */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem; /* px-6 */
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--text-white); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }

.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }
.bg-secondary { background-color: var(--secondary); color: white; }

/* Reusable Section Divider */
.section-divider {
    width: 80px; 
    height: 4px; 
    background: var(--primary); 
    margin: 0 auto 2rem auto; /* Adjusted margin */
    border-radius: 2px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-default);
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover); /* Amber 600 */
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header */
.site-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid #F3F4F6;
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.025em;
}

.brand-icon {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-weight: 600;
    color: var(--text-muted);
}

.nav-item:hover {
    color: var(--primary);
}

.btn-arrow {
    font-size: 18px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.menu-icon {
    font-size: 32px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem; /* Extends hover area downwards */
    margin-bottom: -0.5rem; /* Compensates for padding */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    height: 100%;
    transition: color 0.2s ease;
}

.dropdown-toggle svg {
    transition: fill 0.2s ease;
}

.dropdown-toggle:hover svg {
    fill: var(--primary);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-default);
    border: 1px solid #E5E7EB;
    padding: 0.5rem 0;
    z-index: 100;
    margin-top: 0rem; /* Removed margin to close gap */
}

/* Invisible bridge for hover */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

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


/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    contain: layout;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7); /* opacidad ajustada */
    mix-blend-mode: multiply;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--secondary), transparent);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    contain: layout style paint;
    min-height: 300px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #FEF3C7;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: #E2E8F0;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 42rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Trust Banner */
.trust-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem 0;
}

.trust-grid {
    display: flex; /* Changed to flex for dividers */
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.trust-item {
    flex: 1;
    position: relative;
    padding: 0 1rem;
}

/* Vertical separator for Trust Banner items except the last one */
@media (min-width: 769px) {
    .trust-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background-color: #D1D5DB; /* Light gray separator */
    }
}

.trust-icon {
    font-size: 36px;
}

.trust-item h2 {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--secondary);
    margin-top: 0.5rem;
}

.trust-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Services */
.services-header {
    text-align: center;
    margin-bottom: 2rem; /* Reduced to accommodate divider */
}

.services-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.service-intro {
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-default);
    border: 1px solid #F3F4F6;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #F59E0B;
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #FFFBEB; /* Amber 50 (light yellow) */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box span {
    font-size: 2rem;
    color: var(--primary); /* Changed to Primary Yellow */
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    align-self: flex-start; /* FIX: Prevents full width clickable area */
}

.link-arrow-icon {
    font-size: 14px;
}

.link-arrow:hover {
    color: var(--primary-hover);
}

/* Why Us */
.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center; /* Center-aligns the text block with the features list */
}

.why-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    justify-self: center;
}

.why-desc {
    margin-bottom: 1.5rem;
}

.feature-box {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-default);
    border: 1px solid #E5E7EB;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-list {
    display: grid;
    gap: 1.5rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonials-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.review-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid #F3F4F6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
}

/* Using material icons with fill for solid stars */
.star-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    width: 100%;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-title {
    font-size: 1.875rem; 
    font-weight: 700; 
    color: var(--secondary); 
    margin-bottom: 1rem;
}

details {
    background: var(--bg-white); /* Changed from transparent/light to white for better visibility */
    border: 1px solid #E5E7EB;   /* Added border for definition */
    border-radius: var(--radius-default);
    overflow: hidden;
}

details summary {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
    background-color: var(--bg-white); /* Ensure summary has background */
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    background-color: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.faq-answer {
    padding: 1.25rem; 
    color: var(--text-muted);
    background-color: var(--bg-white);
}

/* Contact / Footer CTA */
.footer-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-desc {
    color: #FFFFFF; 
    font-size: 1.125rem; 
    margin-bottom: 1.5rem;
}

.phone-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.phone-icon-wa {
    background-color: #25D366;
}

.phone-label {
    color: #9CA3AF; 
    font-size: 0.875rem;
}

.phone-number {
    color: white; 
    font-size: 1.5rem; 
    font-weight: 700;
}

.phone-number:hover {
    color: var(--primary);
}

.phone-number-wa:hover {
    color: #25D366;
}

.cta-benefits {
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    color: #9CA3AF; 
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex; 
    align-items: center; 
    gap: 0.25rem;
}

.benefit-icon {
    font-size: 18px;
}

.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-default);
    background-color: #F9FAFB;
}

.form-input:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

.btn-full {
    width: 100%; 
    padding: 1rem;
}

.form-disclaimer {
    text-align: center; 
    color: var(--text-light); 
    font-size: 0.75rem; 
    margin-top: 1rem;
}

.form-disclaimer a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.form-disclaimer a:hover {
    color: var(--primary);
}

/* Footer Bottom */
.main-footer {
    background-color: #F3F4F6;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #E5E7EB;
}

.dark-mode .main-footer {
    background-color: #000;
    border-color: #1F2937;
    color: #9CA3AF;
}

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

.footer-brand-box {
    margin-bottom: 1rem; 
    color: var(--secondary);
}

.brand-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-weight: 400;
}

.footer-links.muted a {
    color: var(--text-muted);
}

.footer-links.muted a:hover {
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    color: var(--primary);
    font-size: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

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

/* RESPONSIVE MEDIA QUERIES */

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px; /* Specific mobile height to reserve space and fix CLS */
    }

    .site-header {
        height: 70px; /* Smaller header on mobile */
    }

    .site-header.scrolled {
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .brand {
        font-size: 1.25rem; /* Smaller logo text */
    }

    .nav-links {
        display: none; /* Hidden by default, toggled with JS */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #F3F4F6;
        gap: 1.5rem;
        align-items: stretch; /* Full width links */
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block; /* Visible on mobile */
    }

    /* Mobile Menu Items Alignment */
    .nav-item {
        display: block;
        padding: 0.5rem 0;
        text-align: left; /* Ensure left alignment */
        width: 100%;     /* Full width tap target */
        color: var(--text-main); /* Ensure visibility */
        border-bottom: 1px solid #f0f0f0; /* Subtle separator */
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }

    /* Fix dropdown in mobile menu */
    .dropdown {
        display: block;
        width: 100%;
        margin-bottom: 0;
        padding-bottom: 0;
        /* border-bottom removed to avoid double border with .nav-item */
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.5rem 0;
        cursor: pointer;
    }

    .dropdown-menu {
        position: static; /* Stack naturally in flow */
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem; /* Indent sub-items */
        display: none; /* Hidden by default */
        background-color: #FAFAFA; /* Slightly different bg for submenu */
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero-content {
        text-align: center;
        padding-top: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .why-us-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-box {
        text-align: left;
    }
    
    .feature-list {
        text-align: left;
    }

    .footer-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .phone-display {
        justify-content: center;
    }
    
    .cta-benefits {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
}
/* ===== PAGINAS LEGALES ===== */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main);
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--secondary);
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-hover);
}

/* Page context adjust */
.legal-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
}

@media (max-width: 768px) {
    .legal-content h1 {
        font-size: 2rem;
    }
    .legal-content h2 {
        font-size: 1.25rem;
    }
}
