@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary: #E3000F; /* Red */
    --primary-hover: #b30000;
    --secondary: #8B0000; /* Dark Red */
    --background: #f8fafc; /* Light Slate */
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header Premium */
.site-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.6rem 1rem;
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 !important;
    max-width: 800px;
    margin: 0 auto;
}

.site-header .logo {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.site-header .logo:hover {
    transform: scale(1.03);
}

.header-nav {
    display: flex;
    gap: 1.2rem;
}

.header-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: white;
}

/* Contenedor Principal */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Buscador (Hero Section) */
.search-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
    border-top: 4px solid var(--primary);
}

.search-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.search-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-form input {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

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

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

/* Tarjetas (Comments) */
.card, .comment {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Phone Pills */
.pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
}

.phone-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pill-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 2px solid #fca5a5;
}

.pill-danger:hover {
    background: #fee2e2;
}

.pill-safe {
    background: #f0fdf4;
    color: #15803d;
    border: 2px solid #86efac;
}

.pill-safe:hover {
    background: #dcfce7;
}

.pill-neutral {
    background: var(--surface);
    color: var(--text-main);
    border: 2px solid var(--border);
}

.pill-neutral:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fef2f2;
}

.pill-number {
    font-variant-numeric: tabular-nums;
}

.pill-badge {
    font-size: 0.8rem;
}

.phone-list {
    list-style: none;
    padding: 0;
}

/* Detalles de Teléfono */
.phone-header {
    text-align: center;
    margin-bottom: 2rem;
}

.phone-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Formulario CTA Reporte */
.report-cta-section {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.report-cta-section h3 {
    color: #38bdf8;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.report-cta-section input, .report-cta-section select, .report-cta-section textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
}

.report-cta-section textarea {
    resize: vertical;
    min-height: 80px;
}

/* Comentarios */
.comments-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.comment {
    border-left-color: var(--primary);
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.reason-tag {
    background: #e0e7ff;
    color: var(--primary);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Author Box (Cajita EEAT) */
.author-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-info {
    text-align: center;
}

.author-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.author-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.author-links a:hover {
    text-decoration: underline;
}

/* FAQs */
.faqs {
    margin-top: 3rem;
}

.faqs h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

details {
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    transition: background 0.2s;
}

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

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

details[open] summary {
    border-bottom: 1px solid var(--border);
    background: #f1f5f9;
}

details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 1.5rem;
    color: var(--text-muted);
}

/* About Page */
.about-hero {
    text-align: center;
    padding: 2rem 0;
}

.about-hero img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-hover);
}

.about-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about-content ul {
    list-style: inside;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Pie de página */
.site-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Blog Index */
.blog-index {
    margin-bottom: 2rem;
}

.blog-index h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-index > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.blog-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.blog-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.blog-card .blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Blog Article */
.article-header {
    margin-bottom: 2rem;
}

.article-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.article-header .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.article-body {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.8;
}

.article-body ol, .article-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-body strong {
    color: var(--text-main);
}

.step-block {
    background: var(--background);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
}

.step-block .step-number {
    display: inline-block;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.tip-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.tip-box strong {
    color: var(--primary);
}

/* Media Queries (Desktop) */
@media (min-width: 640px) {
    .search-form {
        flex-direction: row;
    }
    
    .search-form input {
        flex: 1;
    }
    
    .search-form .btn {
        width: auto;
    }

    .author-box {
        flex-direction: row;
        text-align: left;
    }

    .author-info {
        text-align: left;
    }
}
