/* Estilos extraídos de code.html */
:root {
    --card-radius: 1rem;
    --brand-gradient-colors: #f472b6, #ef4444, #f97316;
}
.gradient-text {
    background: linear-gradient(to right, var(--brand-gradient-colors));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-bg {
    background: linear-gradient(to right, var(--brand-gradient-colors));
}

/* Forzar color negro en títulos y navegación (excepto títulos con la clase `only-white-title`) */
h1, h2:not(.only-white-title), h3 {
    color: #000 !important;
}

/* Título específico que debe mostrarse en blanco */
.only-white-title {
    color: #fff !important;
}

header nav a, nav a {
    color: #000 !important;
}

/* Hover ligeramente más oscuro (opcional) */
header nav a:hover, nav a:hover {
    color: #050505 !important;
}

/* Texto del logo (header y footer) */
header span.text-xl, footer span.text-3xl {
    color: #000 !important;
}

/* Si se usan otras variantes de tamaño para el logo */
header .font-bold, footer .font-bold {
    color: #000 !important;
}

/* Estilos para la sección "Cómo Trabajamos" */
.work-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(2,6,23,0.08);
    border: 1px solid #f1f5f9;
}
.dark .work-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.work-icon {
    height: 64px;
    width: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    margin: 0 auto 1rem auto;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}
.work-icon--pink { background: #ffd6e8; }
.work-icon--pink .material-icons-outlined { color: #db2777; }
.work-icon--red { background: #ffdcd9; }
.work-icon--red .material-icons-outlined { color: #ef4444; }
.work-icon--orange { background: #ffedd5; }
.work-icon--orange .material-icons-outlined { color: #f97316; }
.work-card h3 { margin-top: 0.25rem; margin-bottom: 0.5rem; font-weight: 600; color: #0f172a; }
.work-card p { color: #475569; max-width: 36rem; }

/* Asegurar que la imagen del logo cubra el círculo (object-fit) */
.logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 9999px; /* refuerza el corte circular */
}

/* Contact section styles */
.contact-input, .contact-textarea {
    background: #f8fafc;
    border: 1px solid #e6edf3;
    color: #0f172a;
}
.dark .contact-input, .dark .contact-textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: #e6eef8;
}
.contact-input:focus, .contact-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.10);
    border-color: #fb923c;
}
.contact-btn { /* small fallback for older browsers */
    -webkit-appearance: none;
    appearance: none;
}

/* Mejoras visuales y responsive para la sección de contacto */
.contact-input, .contact-textarea { /* asegurar que llenen su contenedor */
    width: 100%;
}
.contact-textarea { resize: vertical; min-height: 96px; }
.contact-btn { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Ajuste: inputs del formulario ocupan el resto disponible del contenedor */
/* Contenedor adaptable: apila en móviles, usa flex en pantallas >= 640px */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .contact-grid {
        display: flex;
        gap: 0.75rem;
        align-items: stretch;
    }
    .contact-grid .contact-input {
        flex: 1 1 0;
        min-width: 0; /* permite que el input se reduzca correctamente dentro de flex */
        width: auto; /* sobrescribe width:100% cuando se usa flex */
    }
}

/* Bloque de contacto: borde lineal con gradiente de marca, sin sombra */
.contact-panel {
    position: relative;
    border-radius: var(--card-radius);
    background-color: transparent; /* ensure interior remains transparent */
    box-shadow: none; /* remove previous shadow if any */
}

.contact-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--card-radius); 
    padding: 2px; /* border thickness */
    background: linear-gradient(to right, var(--brand-gradient-colors)); 
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude; 
    pointer-events: none;
}

@media (min-width: 768px) {
    .contact-input.sm-inline { width: auto; }
}

/* Estilos para mejorar la visibilidad del bloque de contacto dentro del footer */
.contact-footer {
    border-top: 1px solid rgba(2,6,23,0.06);
    padding-top: 1rem;
}
.dark .contact-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-footer h4 { color: #0f172a; }
.dark .contact-footer h4 { color: #e6eef8; }
.contact-footer p { color: #475569; }
.dark .contact-footer p { color: #cbd5e1; }
.contact-footer a { color: inherit; text-decoration: none; }

