/* ═══════════════════════════════════════════════════════════════
   iStar - Energía Solar Fotovoltaica
   Estilos principales
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables / Paleta iStar ─────────────────────────────── */
:root {
    --color-primary:       #124072;
    --color-primary-rgb:   18, 64, 114;
    --color-accent:        #f1a836;
    --color-accent-rgb:    241, 168, 54;
    --color-secondary:     #2c6a9f;
    --color-secondary-rgb: 44, 106, 159;

    --color-dark:          #0c1f33;
    --color-darker:        #081422;
    --color-dark-card:     #0f2a44;

    --color-white:         #ffffff;
    --color-gray-100:      #f7f8fa;
    --color-gray-200:      #e9ecef;
    --color-gray-300:      #dee2e6;
    --color-gray-400:      #ced4da;
    --color-gray-500:      #adb5bd;
    --color-gray-600:      #6c757d;
    --color-gray-700:      #495057;
    --color-gray-800:      #343a40;

    --font-primary:        'Rajdhani', system-ui, -apple-system, sans-serif;
    --font-heading:        'oskar', serif;
    --font-mono:           'Fira Code', 'Cascadia Code', monospace;

    --shadow-sm:           0 2px 8px rgba(0,0,0,.08);
    --shadow-md:           0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:           0 8px 40px rgba(0,0,0,.18);
    --shadow-glow:         0 0 30px rgba(241, 168, 54, .25);

    --radius-sm:           8px;
    --radius-md:           12px;
    --radius-lg:           20px;
    --radius-xl:           28px;

    --transition:          .3s cubic-bezier(.4, 0, .2, 1);
    --transition-slow:     .5s cubic-bezier(.4, 0, .2, 1);

    --max-width:           1200px;
    --header-height:       72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--color-darker);
    color: var(--color-gray-200);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: #ffc55a; }

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Tipografía ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-white), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray-400);
    max-width: 650px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* ─── Botones ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #e09120);
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(241, 168, 54, .3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(241, 168, 54, .4);
    color: var(--color-dark);
}

.btn-accent {
    background: #2c6a9f;
    color: #fff;
    box-shadow: 0 4px 15px rgba(44, 106, 159, .3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 106, 159, .4);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}
.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-dark);
}

/* ─── Header / Navegación ──────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(8, 20, 34, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-white);
    font-weight: 800;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.logo-img {
    height: 62px;
    width: auto;
}

.logo-text span {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--color-gray-300);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    background: rgba(241, 168, 54, .08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Banner full-width ───────────────────────────────────── */
.site-banner {
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-height);
    line-height: 0;
}

.site-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center 90%;
    aspect-ratio: 16 / 4;
    opacity: 0.7;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 75% 100%, 0 90%);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 75% 100%, 0 90%);
}

@media (max-width: 768px) {
    .site-banner-img {
        aspect-ratio: 16 / 6.75;
    }
}

/* ─── Patrón de crucecitas SVG (trama sutil) ──────────────── */
.cross-pattern::before,
.hero::before,
.cta-section::before,
.page-header::before,
.section-dark::before,
.section-darker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.016'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Glow adicional sobre la trama para hero y page-header */
.hero::after,
.page-header-glow::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    padding: 30px 0 100px;
    background: var(--color-darker);
}

.hero > .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(18,64,114,.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 168, 54, .12);
    border: 1px solid rgba(241, 168, 54, .25);
    color: var(--color-accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-white);
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-accent), #ffc55a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-gray-400);
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: .85rem;
    color: var(--color-gray-500);
    margin-top: 4px;
}

/* ─── Secciones generales ──────────────────────────────────── */
.section-dark {
    background: var(--color-dark);
    position: relative;
}

.section-darker {
    background: var(--color-darker);
    position: relative;
}

/* ─── Grid de Servicios ────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--color-dark-card);
    border: 1px solid rgba(241, 168, 54, .08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 168, 54, .2);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-white);
}

.service-card p {
    color: var(--color-gray-400);
    font-size: .95rem;
    line-height: 1.7;
}

/* ─── Beneficios ───────────────────────────────────────────── */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.benefits-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-visual-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-dark-card), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 168, 54, .1);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(241, 168, 54, .1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-white);
}

.benefit-text p {
    font-size: .92rem;
    color: var(--color-gray-400);
    line-height: 1.6;
}

/* ─── Servicios detallados ─────────────────────────────────── */
.services-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--color-dark-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(241, 168, 54, .08);
    transition: var(--transition);
}
.service-detail:hover {
    border-color: rgba(241, 168, 54, .2);
    box-shadow: var(--shadow-md);
}

.service-detail-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.service-detail h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--color-white);
}

.service-detail p {
    color: var(--color-gray-400);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-detail ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-detail ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gray-300);
    font-size: .95rem;
}
.service-detail ul li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: 700;
}

.service-detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(241, 168, 54, .05);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 200px;
    border: 1px dashed rgba(241, 168, 54, .15);
}

/* ─── Page Header (internas) ───────────────────────────────── */
.page-header {
    padding: 60px 0 60px;
    background: var(--color-darker);
    text-align: center;
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(241,168,54,.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: .9rem;
    color: var(--color-gray-500);
}
.breadcrumbs a {
    color: var(--color-gray-400);
}
.breadcrumbs a:hover {
    color: var(--color-accent);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--color-gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── About Page ───────────────────────────────────────────── */
.about-page-content {
    padding: 60px 0 100px;
}

/* ─── Subir el contenido 80px en páginas secundarias ─────── */
.page-header + .about-page-content,
.page-header + .contact-page {
    margin-top: -40px;
}

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-story-image {
    background: linear-gradient(135deg, var(--color-dark-card), var(--color-primary));
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px solid rgba(241, 168, 54, .1);
}

.about-story h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-story p {
    color: var(--color-gray-400);
    margin-bottom: 16px;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 50px 0 80px;
}

.team-member {
    background: var(--color-dark-card);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    border: 1px solid rgba(241, 168, 54, .08);
    transition: var(--transition);
}
.team-member:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 168, 54, .2);
    box-shadow: var(--shadow-md);
}

.team-member-avatar {
    font-size: 3.2rem;
    margin-bottom: 16px;
}

.team-member h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.team-member span {
    display: block;
    color: var(--color-accent);
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-member p {
    color: var(--color-gray-400);
    font-size: .9rem;
    line-height: 1.6;
}

/* ─── Contacto / Formulario ────────────────────────────────── */
.contact-page {
    padding: 60px 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--color-gray-400);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(241, 168, 54, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2px;
}

.contact-detail p {
    color: var(--color-gray-400);
    font-size: .92rem;
}

.contact-form-wrapper {
    background: var(--color-dark-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid rgba(241, 168, 54, .08);
}

.contact-form-wrapper h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--color-gray-400);
    font-size: .95rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-gray-300);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-darker);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: .95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(241, 168, 54, .15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: .9rem;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(40, 167, 69, .15);
    border: 1px solid rgba(40, 167, 69, .3);
    color: #6fcf97;
}
.form-message.error {
    display: block;
    background: rgba(220, 53, 69, .15);
    border: 1px solid rgba(220, 53, 69, .3);
    color: #f28b82;
}

/* ─── Proyectos / Galería ──────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--color-dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(241, 168, 54, .08);
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 168, 54, .2);
    box-shadow: var(--shadow-lg);
}

.project-card-image {
    height: 220px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark-card));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.project-card-body {
    padding: 24px;
}

.project-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-card-body p {
    color: var(--color-gray-400);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(241, 168, 54, .12);
    color: var(--color-accent);
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
}

/* ─── Blog ─────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--color-dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(241, 168, 54, .08);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 168, 54, .2);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
}

.blog-card-body {
    padding: 24px;
}

.blog-date {
    font-size: .82rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.blog-card-body h3 a {
    color: var(--color-white);
}
.blog-card-body h3 a:hover {
    color: var(--color-accent);
}

.blog-card-body p {
    color: var(--color-gray-400);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.blog-read-more {
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-accent);
}

/* ─── Newsletter ───────────────────────────────────────────── */
.newsletter {
    background: var(--color-dark-card);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    border: 1px solid rgba(241, 168, 54, .08);
}

.newsletter h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.newsletter p {
    color: var(--color-gray-400);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: var(--color-darker);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: .95rem;
    outline: none;
    font-family: inherit;
}
.newsletter-form input:focus {
    border-color: var(--color-accent);
}

/* ─── CTA Section ──────────────────────────────────────────── */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(241,168,54,.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--color-gray-300);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--color-dark);
    padding: 60px 0 0;
    border-top: 1px solid rgba(241, 168, 54, .08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-gray-500);
    font-size: .9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--color-gray-500);
    font-size: .9rem;
}
.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    color: var(--color-gray-500);
    font-size: .9rem;
}
.footer-contact .icon {
    flex-shrink: 0;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--color-gray-600);
    font-size: .85rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    transition: opacity var(--transition), transform var(--transition);
    opacity: 1;
}
.footer-social a:hover {
    opacity: .65;
    transform: translateY(-2px);
}

/* ─── WhatsApp Float ───────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, .45);
    color: white;
}

/* ─── Animaciones ──────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-story {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
    }
    .service-detail-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(8, 20, 34, .98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid rgba(241, 168, 54, .1);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hamburger {
        display: flex;
    }

    .hero-stats {
        gap: 24px;
    }
    .hero-stat-number {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .newsletter {
        padding: 30px 20px;
    }
    .newsletter-form {
        flex-direction: column;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 49px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CARRUSEL DE SERVICIOS (Home)
   ═══════════════════════════════════════════════════════════════ */
.services-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.carousel-wrapper {
    overflow: hidden;
    margin: 0 60px;
    padding: 8px 0;
}

.carousel-track {
    display: flex;
    gap: 36px;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc((100% - 72px) / 3);
    min-width: 0;
}

/* Ajustes para service-card dentro del carrusel */
.carousel-slide .service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-slide .service-icon {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Botones de navegación ─── */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(241, 168, 54, .2);
    background: rgba(8, 20, 34, .85);
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: var(--color-darker);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(241, 168, 54, .3);
}

.carousel-btn:disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* ─── Dots ─── */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(241, 168, 54, .2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(241, 168, 54, .4);
    width: 28px;
    border-radius: 5px;
}

.carousel-dot:hover {
    background: rgba(241, 168, 54, .5);
}

/* ─── Responsive Carrusel ─── */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 36px) / 2);
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        margin: 0 0;
    }

    .carousel-slide {
        flex: 0 0 100%;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-dots {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-slide .service-card {
        padding: 24px 20px;
    }
    .carousel-slide .service-card h3 {
        font-size: 1.1rem;
    }
}


/* ─── Blog iStar v1 ────────────────────────────────────────── */
.blog-page-header p,
.article-page-header p {
    max-width: 760px;
}

.blog-page-content {
    padding-top: 40px;
}

.blog-featured-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 0;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(15,42,68,.96), rgba(18,64,114,.82));
    border: 1px solid rgba(241, 168, 54, .14);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 70px;
}

.blog-featured-image {
    min-height: 380px;
    background: var(--color-dark-card);
    display: block;
    overflow: hidden;
}

.blog-featured-image img,
.blog-card-image img,
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-featured-card:hover .blog-featured-image img,
.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-featured-body {
    padding: clamp(32px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-category {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(241, 168, 54, .12);
    color: var(--color-accent);
    border: 1px solid rgba(241, 168, 54, .18);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-featured-body h2 {
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    margin: 8px 0 16px;
}

.blog-featured-body h2 a {
    color: var(--color-white);
}

.blog-featured-body h2 a:hover {
    color: var(--color-accent);
}

.blog-featured-body p {
    color: var(--color-gray-300);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 26px;
}

.blog-section-heading {
    margin-bottom: 10px;
}

.blog-grid-enhanced {
    margin-bottom: 70px;
}

.blog-card-image {
    padding: 0;
    overflow: hidden;
}

.blog-card-body .blog-category {
    margin-bottom: 10px;
}

.blog-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 42px;
    background: linear-gradient(135deg, rgba(18,64,114,.9), rgba(12,31,51,.95));
    border: 1px solid rgba(241, 168, 54, .14);
    border-radius: var(--radius-xl);
}

.blog-cta-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.blog-cta-panel p {
    color: var(--color-gray-300);
    max-width: 720px;
}

.article-page-header {
    padding-bottom: 50px;
}

.article-page-header h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--color-gray-400);
    font-weight: 600;
}

.article-page-content {
    padding: 20px 0 100px;
}

.article-cover {
    height: clamp(280px, 45vw, 520px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(241, 168, 54, .12);
    box-shadow: var(--shadow-lg);
    margin-bottom: 52px;
    background: var(--color-dark-card);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

.article-content {
    background: rgba(15, 42, 68, .38);
    border: 1px solid rgba(241, 168, 54, .08);
    border-radius: var(--radius-xl);
    padding: clamp(26px, 5vw, 54px);
}

.article-content p {
    color: var(--color-gray-300);
    font-size: 1.06rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin: 38px 0 14px;
    color: var(--color-white);
}

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

.article-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
}

.article-list li {
    position: relative;
    padding-left: 30px;
    color: var(--color-gray-300);
    line-height: 1.7;
}

.article-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 800;
}

.article-bottom-cta {
    margin-top: 48px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(44,106,159,.35), rgba(241,168,54,.08));
    border: 1px solid rgba(241, 168, 54, .14);
}

.article-bottom-cta h2 {
    margin-top: 0;
}

.article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: grid;
    gap: 20px;
}

.article-sidebar-card {
    background: var(--color-dark-card);
    border-radius: var(--radius-lg);
    padding: 26px;
    border: 1px solid rgba(241, 168, 54, .1);
}

.article-sidebar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.article-sidebar-card p {
    color: var(--color-gray-400);
    font-size: .94rem;
    line-height: 1.7;
}

.article-sidebar-card.article-sidebar-accent .btn {
    margin-top: 15px;
}

.article-topic-list {
    display: grid;
    gap: 12px;
}

.article-topic-list a {
    display: block;
    color: var(--color-gray-300);
    line-height: 1.45;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.article-topic-list a:hover {
    color: var(--color-accent);
}

.article-sidebar-accent {
    background: linear-gradient(135deg, rgba(18,64,114,.9), rgba(15,42,68,.95));
}

@media (max-width: 900px) {
    .blog-featured-card,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 280px;
    }

    .blog-cta-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .article-meta {
        flex-wrap: wrap;
    }

    .article-cover {
        margin-bottom: 30px;
    }

    .article-content,
    .article-bottom-cta {
        padding: 24px;
    }
}
