/*
Theme Name: temaResina
Author: Ismael
Version: 1.0
Description: Tema personalizado para proyectos de resina.
*/

:root {
    /* Premium Technical Light Palette */
    --clr-bg-main: #FFFFFF;
    --clr-bg-alt: #F8FAFC; 
    --clr-bg-glass: rgba(255, 255, 255, 0.85);
    
    --clr-navy: #143e6b;
    --clr-cyan: #41aac1;
    
    --clr-accent: var(--clr-cyan); 
    --clr-accent-dim: #3a97ad;
    --clr-text-main: #0F172A; /* Slate 900 */
    --clr-text-muted: #475569; /* Slate 600 */
    --clr-text-dim: #94A3B8; /* Slate 400 */
    --clr-border: #E2E8F0; /* Slate 200 */
    
    --ff-heading: 'Outfit', sans-serif;
    --ff-serif: 'Spectral', serif;
    --ff-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    --header-offset: 128px;
}

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

html {
    scroll-behavior: initial;
}

body {
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--ff-serif);
    font-weight: 600; /* Semi-Bold Spectral: The perfect balance */
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--clr-text-main);
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 7rem 0;
}

.full-width {
    width: 100%;
}

/* Dark Sections */
.section-dark {
    background-color: var(--clr-navy);
    color: #FFFFFF;
}

.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
    color: #FFFFFF;
}

.section-dark .section-title p,
.section-dark p {
    color: #F1F5F9; /* Slate 100 - very light off-white */
}

/* Override any inline opacity/color for small texts in dark sections */
.section-dark [style*="opacity"] {
    color: #E2E8F0 !important;
    opacity: 1 !important;
}

.section-dark .benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.section-dark .benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--clr-accent);
}

.section-dark .benefit-card .icon {
    filter: brightness(1.2);
}

.section-dark .benefit-card h3 {
    color: #FFFFFF;
}

.section-dark .benefit-card p {
    color: #F1F5F9;
}

.section-dark .industrial-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-dark .form-group label {
    color: var(--clr-accent);
}

.section-dark .form-group input, 
.section-dark .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.section-dark .form-group input:focus, 
.section-dark .form-group textarea:focus {
    border-color: var(--clr-accent);
    background: rgba(0, 0, 0, 0.3);
}

.section-dark .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.section-dark .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--clr-accent);
}

.section-dark .btn-primary {
    background: var(--clr-accent);
}

.section-dark .btn-primary:hover {
    background: #3a97ad;
    box-shadow: 0 15px 35px rgba(65, 170, 193, 0.25);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--ff-heading);
}

.btn-primary {
    background: var(--clr-text-main);
    color: #fff;
}

.btn-primary:hover {
    background: var(--clr-accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
}

.btn-outline:hover {
    background: var(--clr-bg-alt);
    border-color: var(--clr-text-main);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.2rem 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 1.2rem 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #000000;
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle i {
    font-size: 1rem;
}

.logo {
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.section-dark .logo {
    color: #fff;
}

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000000;
}

.scrolled .nav-links a {
    color: #000000;
}

.nav-links a:hover {
    color: var(--clr-accent);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--clr-navy);
    padding-top: calc(var(--header-offset) + 1rem);
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(20, 62, 107, 0.4) 0%, rgba(20, 62, 107, 0.95) 100%);
}

.hero-content {
    max-width: 950px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 3rem;
}

.hero-tag {
    display: inline-block;
    color: var(--clr-accent);
    font-family: var(--ff-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4em; /* Increased elegant spacing */
    font-size: 0.75rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 7.5vw, 4.8rem);
    margin-bottom: 2rem;
    color: #FFFFFF;
    font-weight: 600;
    line-height: 0.95;
}

.hero p {
    font-size: 1.1rem;
    color: #F1F5F9;
    max-width: 750px;
    margin: 0 auto 3.5rem; /* Centered margin */
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center; /* Center buttons */
    margin-top: 0.75rem;
    position: relative;
    z-index: 6;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #FFFFFF;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.hero-stats {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 1rem;
}

.hero-stat-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 0.8rem;
}

.hero-stat-item span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}

.hero-stat-item strong {
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
}

/* Intro Section */
.intro {
    background: var(--clr-bg-main);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.intro-text span {
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 5px; /* Elegant tracking */
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.intro-text h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2.5rem;
    color: var(--clr-text-main);
}

.intro-p {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.intro-feature {
    padding: 2.5rem;
    background: var(--clr-bg-alt);
    border-left: 4px solid var(--clr-accent);
    margin-top: 3rem;
}

.intro-feature p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-text-main);
    line-height: 1.8;
}

/* Benefits cards */
.benefits {
    background: var(--clr-bg-alt);
}

.benefits.section-dark {
    background: var(--clr-navy);
}

.section-title {
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: 3rem;
}

.section-title p {
    color: var(--clr-text-muted);
    max-width: 900px;
    margin-top: 1rem;
}

.benefit-card {
    background: var(--clr-bg-main);
    padding: 4.5rem 3.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.benefit-card .icon {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 2.5rem;
}

.benefit-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.benefit-card p {
    color: var(--clr-text-muted);
}

.benefits-cta {
    margin-top: 3rem;
    text-align: center;
}

.benefits-cta h3 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.benefits-cta p {
    color: #e2e8f0;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.guarantee-badge {
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px dashed var(--clr-accent);
    color: var(--clr-accent);
    padding: 0.4rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.72rem;
}

/* Services / Technical */
.services {
    background: var(--clr-bg-alt);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.tech-item {
    background: var(--clr-bg-main);
    padding: 2.5rem;
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-item:hover {
    border-color: var(--clr-accent);
    transform: translateY(-5px);
}

.tech-item-highlight {
    border: 1px dashed var(--clr-accent) !important;
    background: rgba(65, 170, 193, 0.03);
}

.tech-item h4 {
    color: var(--clr-text-main);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.section-dark .tech-item h4 {
    color: #FFFFFF;
}

.tech-item ul {
    list-style: none;
}

.tech-item li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.tech-item li::before {
    content: "→";
    color: var(--clr-accent);
    margin-right: 0.8rem;
    font-weight: 700;
}

.tech-item li:last-child {
    border-bottom: none;
}

/* Sectors showcasing */
.sectors {
    padding: 0;
}

.sector-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 56vh;
}

.sector-row:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.sector-media {
    overflow: hidden;
    background: var(--clr-navy);
    position: relative;
    min-height: 360px;
    max-height: 420px;
}

.sector-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.5s ease;
}

.sector-content {
    padding: 7% 9%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--clr-navy);
}

.sector-row:nth-child(even) .sector-content {
    background: rgba(11, 28, 50, 0.97); /* slightly darker navy for rhythm */
}

.sector-content h2 {
    font-size: 2.1rem;
    margin-bottom: 1.2rem;
    color: #FFFFFF;
}

.sector-content p {
    color: #E2E8F0;
    margin-bottom: 1.8rem;
    font-size: 1rem;
}

/* Contact */
.contact {
    background: var(--clr-bg-alt); /* Light Technical Grey */
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
}

.contact-details h2 {
    font-size: 3.5rem;
    margin-bottom: 3.5rem;
    color: var(--clr-text-main);
}

.contact-method {
    margin-bottom: 3rem;
}

.contact-method span {
    display: block;
    color: var(--clr-accent-dim); /* Darker cyan for better contrast on white */
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.contact-method p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-main);
}

.industrial-form {
    background: var(--clr-navy);
    padding: 4rem;
    border-radius: 14px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full { grid-column: span 2; }

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent); /* Brighter cyan for dark background */
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem;
    color: #FFFFFF;
    font-family: var(--ff-body);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(65, 170, 193, 0.1);
}

/* Footer */
footer {
    padding: 8rem 0 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
}

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

.footer-brand p {
    color: #E2E8F0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: var(--clr-text-main);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1.2rem;
}

.footer-col a {
    color: #E2E8F0;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--clr-accent);
}

.footer-col h4 {
    color: #e2e8f0;
}

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #CBD5E1; /* Slate 300 - clearly visible on navy */
    font-size: 0.85rem;
}

/* Animations */
.stagger-reveal {
    opacity: 0;
}

.floating-call-btn {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--clr-accent);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.85rem 1.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Softer corners across key home blocks */
.intro-feature,
.hero-stat-item,
.sector-content,
.sector-media,
.tech-item-highlight {
    border-radius: 14px;
}

.floating-call-btn:hover {
    background: var(--clr-accent-dim);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-layout, .intro-grid, .tech-grid { grid-template-columns: 1fr; gap: 4rem; }
    .sector-row, .sector-row:nth-child(even) { grid-template-columns: 1fr; }
    .sector-content { padding: 4rem 5%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .hero-stats { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

@media (max-width: 768px) {
    :root { --header-offset: 92px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .industrial-form { grid-template-columns: 1fr; padding: 2rem; }
    .form-group.full { grid-column: initial; }
    .menu-toggle { display: inline-flex; }
    .header-call-btn { display: none; }
    header .container { position: relative; }
    .nav-menu {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 5%;
        right: 5%;
        background: #FFFFFF;
        border: 1px solid #E2E8F0;
        border-radius: 12px;
        padding: 0.9rem;
        display: none;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.open { display: block; }
    .nav-links {
        flex-direction: column;
        gap: 0.9rem;
        align-items: flex-start;
    }
    .nav-links a { font-size: 0.8rem; }
    .section-padding { padding: 6rem 0; }
    .hero { text-align: center; padding-top: calc(var(--header-offset) + 0.75rem); }
    .hero-overlay { width: 100%; background: rgba(255,255,255,0.85); }
    .hero-cta { justify-content: center; }
    .hero-stats { grid-template-columns: 1fr; }
    .floating-call-btn {
        right: 0.8rem;
        bottom: 0.8rem;
        padding: 0.72rem 0.95rem;
        font-size: 0.7rem;
    }
}
