/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fcfcfc;
    color: #1e1e1e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Paleta corporativa */
:root {
    --red: #c71f1a;
    --red-hover: #a41712;
    --black: #1a1a1a;
    --gray-dark: #2c2c2c;
    --gray-light: #eef2f5;
    --gray-bg: #f8f9fa;
    --text-dark: #222;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background-color: var(--black);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo img {
    height: 54px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-fallback {
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.2;
}

.logo-fallback span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #ccc;
}

.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--red);
}

.btn-outline-light {
    border: 1px solid var(--red);
    background: transparent;
    padding: 8px 18px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline-light:hover {
    background: var(--red);
    color: white;
}

/* Hero renovado */
.hero {
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    color: white;
    padding: 80px 0 90px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(199,31,26,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1.2;
}

.badge {
    background: var(--red);
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--red);
}

.hero-text p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 90%;
}

.btn-primary {
    background: var(--red);
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    color: white;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
}

.hero-stats {
    flex: 0.8;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.15);
}

.stat-item {
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ff7a5c;
}

/* Secciones generales */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 48px;
    text-align: center;
    color: var(--black);
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--red);
    margin: 16px auto 0;
    border-radius: 4px;
}

/* Servicios cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 28px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    transition: 0.25s ease;
    text-align: center;
    border: 1px solid #e9edf2;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.06);
    border-color: var(--red);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--red);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--black);
}

.service-card p {
    color: #4a5568;
    font-size: 0.95rem;
}

.servicio-destacado {
    text-align: center;
    margin-top: 48px;
    font-weight: 500;
    background: #fff0ed;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 28px;
    border-radius: 60px;
    color: #b91c1c;
}

/* Nosotros */
.about-wrap {
    background: white;
    border-radius: 48px;
    padding: 48px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    box-shadow: 0 12px 28px rgba(0,0,0,0.04);
    border: 1px solid #edeff2;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
}

.about-text p {
    margin-bottom: 20px;
    color: #2d3a46;
}

.about-badge {
    background: var(--gray-light);
    padding: 12px 20px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.about-icon {
    flex: 1;
    text-align: center;
    font-size: 4rem;
    color: var(--red);
}

.about-icon p {
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.9rem;
}

/* Contacto */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 36px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eef2f0;
}

.contact-info {
    flex: 1;
    background: var(--black);
    padding: 44px 36px;
    color: white;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 28px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-detail i {
    font-size: 1.7rem;
    width: 40px;
    color: var(--red);
}

.contact-detail span {
    font-weight: 500;
}

.contact-extra {
    flex: 1;
    padding: 44px 36px;
    background: #fefefe;
}

.contact-extra h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--black);
}

.hours {
    border-left: 3px solid var(--red);
    padding-left: 16px;
    margin-top: 20px;
    margin-bottom: 28px;
}

.contact-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-phone {
    background: #1f4e6e;
}

.btn-wa {
    background: #25D366;
}

/* Área legal */
.legal-wrapper {
    margin: 30px auto 50px;
}

.legal-cookie-area {
    background: #f1f5f7;
    border-radius: 32px;
    padding: 20px 28px;
}

.legal-nav-bottom {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legal-nav-bottom button {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    padding: 8px 12px;
    transition: 0.2s;
    border-radius: 40px;
}

.legal-nav-bottom button:hover {
    background: rgba(199,31,26,0.1);
    color: var(--red);
}

.collapsible-panel {
    background: white;
    border-radius: 24px;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease-out, padding 0.2s;
    margin-bottom: 16px;
}

.collapsible-panel.open {
    max-height: 550px;
    padding: 24px 28px;
    overflow-y: auto;
}

.collapsible-panel h4 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--black);
}

/* Footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid #dce5e9;
    padding: 28px 0 24px;
    font-size: 0.75rem;
    color: #4a6679;
}

.red-seo-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 800;
    font-size: 0.7rem;
}

.red-part {
    background: white;
    color: #c71f1a;
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid #c71f1a;
}

.seo-part {
    background: #c71f1a;
    color: white;
    padding: 3px 6px;
    border-radius: 6px;
}

.designer-credit {
    font-size: 0.7rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    color: #f0f0f0;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 1000;
    border-top: 3px solid var(--red);
}

.cookie-banner p {
    font-size: 0.8rem;
    max-width: 70%;
}

.cookie-btn {
    background: var(--red);
    border: none;
    padding: 8px 20px;
    color: white;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .cookie-banner p { max-width: 100%; }
    .section-title { font-size: 1.8rem; }
    .about-wrap { padding: 32px 24px; }
    .contact-info, .contact-extra { padding: 32px 24px; }
}